nyx

The first CODM discrod bot -- cath.exe Template
git clone https://codeberg.org/night0721/nyx
Log | Files | Refs | LICENSE

commit 02c697f71f071b60cfd852a35dec1146a669c3a3
parent d5efd6a7cf17e32b17f13387234179b3cf999711
Author: night0721 <[email protected]>
Date:   Mon, 14 Mar 2022 03:15:16 +0800

Merge branch 'dev'

Diffstat:
M.github/README.md | 18++++++++++++++----
ACODM/loadout.js | 78++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Acommand/APEX/sens.js | 78++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Autil/assets/images/Logos/STATS_ON_DUTY_V3.png | 0
Autil/assets/images/Logos/nolink-leakers.png | 0
Autil/assets/images/Logos/roundtablepng.png | 0
Autil/assets/images/apex/apex-legends-logo-white.svg | 72++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 242 insertions(+), 4 deletions(-)

diff --git a/.github/README.md b/.github/README.md @@ -21,7 +21,9 @@ <!-- description --> **NYX** _(previously known as Cath)_ is a first and only **COD Mobile Statistics & Gunsmith** Bot which also doubles as a multipurpose discord bot with many features that include but are not limited to Moderation, Music and Economy. <br> -The Call of Duty Stats are courtesy of **Round Table** by Cygnoux Familia.<br><br> +The Call of Duty Stats are courtesy of **Stats on Duty** & **Round Table**<br> +πŸ”Ί **Apex Legends Commands** will be added soon, the player stats command will be added after the global launch when the API supports it. +<br><br> If you like this bot, feel free to :star: **Star** this repository.<br> > ⚠ The Verifed bot instance is current called Cath.exe, we are working on getting it changed @@ -43,15 +45,23 @@ If you like this bot, feel free to :star: **Star** this repository.<br> ## <img height="18px" src="../util/assets/images/cod_logo.svg"> **Call of Duty Mobile** -- **Weapon Statistics** courtesy of **Lighthouse v2.1** -> Will soon be using stats provided by **Stats On Duty**. -- **Currated Gunsmith Builds** by various content creators like Jokesta, dHitman, Path.exe and more comming soon. +- **Weapon Statistics** courtesy of **Round Table** & **Stats On Duty** +- **Currated Gunsmith Builds** by various content creators like Jokesta, dHitman, Path.exe, Stats On Duty and more comming soon. - **Perks** detailed info about the perks. - **Scorestreak** detailed info about scorestreak with preview videos. - **Randomly Generated Class** Wanna try something challenging? try our Randomly Generated Gunsmith builds. > We also provide access to our database that includes In-depth Weapon statistics & Gunsmith Builds from various Content Creators, & other Call of duty related info, please [contact us](https://rebrand.ly/cathSupport) for more info. +## <img height="16px" src="../util/assets/images/apex/apex-legends-logo-white.svg"> **Apex Legends Mobile** +> ⚠ *Coming Soonβ„’* + +- **Player Stats** view your in-game stats. <!-- if they support mobile for the stats api --> +- **Legends** detailed info about legends & their abilities. +- **Guns** detailed info about guns. +- **Random Combos** Wanna try something challenging? try to win a game with a random selected legend & Gun combination +- *& many more, coming soon!* + ## More Info [![Top language](https://img.shields.io/github/languages/top/night0721/cath.exe?labelColor=F7DF1E&color=555555&style=for-the-badge&scale=1.4)](https://github.com/night0721/cath.exe) diff --git a/CODM/loadout.js b/CODM/loadout.js @@ -0,0 +1,78 @@ +const { MessageEmbed } = require("discord.js"); //@night0721 You need to make this +const items = require("../../util/Data/loadout.json"); +module.exports = { + name: "class", + description: "Generate A Random Loadout", + category: "CODM", + run: async (client, interaction) => { + // const data = async () => { + // const d = await model.findOne({}); + // const types = d.Categories; + // const names = d.Primary; + // const category = types[Math.floor(Math.random() * types.length)]; + // const weapons = names[0][category]; + // return `${weapons[Math.floor(Math.random() * weapons.length)]}`; + // }; + // const primary_weapon = await data(); + // const primary = primary_weapon.replace(/[ -]/g, "_").replace(/\./g, ""); + // const slots = shuffle(Object.keys(Attachments[primary][0])); + // const slot_1 = slots.next().value, + // slot_2 = slots.next().value, + // slot_3 = slots.next().value, + // slot_4 = slots.next().value, + // slot_5 = slots.next().value; + const result = new MessageEmbed() + .setColor(client.color) + .setFooter(`Made by ${client.author}`) + .setURL(client.web) + .setTitle(`🎲 A Randomly Generated Loadout 🎲`) + .setDescription( + `This loadout is a randomly generated, Also try, \`/class\` to get a randomally generated primary weapon gunsmith build` + ) + .addFields( + { + name: `Secondary Weapon`, + value: ``, + inline: true, + }, + { + name: `Operator Skill`, + value: ``, + inline: true, + }, + { + name: `Scorestreak`, // 3 perks + value: ``, + inline: true, + }, + { + name: `πŸ”΄ Red Perk`, + value: ``, + inline: true, + }, + { + name: `🟒 Green Perk`, + value: ``, + inline: true, + }, + { + name: `πŸ”΅ Blue Perk`, + value: ``, + inline: true, + } + ) + .setTimestamp(); + interaction.followUp({ embeds: [result] }); + + // function* shuffle(array) { + // let i = array.length; + // while (i--) { + // yield array.splice(Math.floor(Math.random() * (i + 1)), 1)[0]; + // } + // } + // function getAttachment(gun, slot) { + // const ca = Attachments[gun][0][slot]; + // return ca[Math.floor(Math.random() * ca.length)]; + // } + }, +}; diff --git a/command/APEX/sens.js b/command/APEX/sens.js @@ -0,0 +1,78 @@ +const { MessageEmbed } = require("discord.js"); +module.exports = { + name: "class", + description: "Get the perfect sensitivity for APEXM", + category: "APEX", + usage: "[Ironsight Sensitivity ]", + type: "CHAT_INPUT", + options: [ + { + type: 3, + name: "base_sensitivity", + description: "Enter the base ironsight sensitivity or for 1x scope", + required: true, + }, + ], + run: async (client, interaction, args) => { + if (args[0] > 0 && args[0] < 300) { + const embed = new MessageEmbed() + .setTitle(`The base sensitivity (ironsight or 1x Scope): ${args[0]}`) + .setDescription( + `<:nyx_description:897379659665264650> [Video guide](https://rebrand.ly/apexm-sens) by HawksNest on how to set your sensitivity. + \n**Basic Sensitivity** \`\`\` + \nTPP without ADS ${args[0] * 2.09} + \nFPP without ADS ${args[0] * 1.29} + \`\`\`\n + **Scope Sensitivity**` + ) + .setColor(13703714) // hex: #d11a22 + .setFooter({ + text: `Data by Hawksnest`, + iconURL: + "https://media.discordapp.net/attachments/851764525623672854/951532817647542342/more_hawksnest.jpg", + }) + .setTimestamp() + .addFields( + { + name: "2x Scope ADS", + value: `\`\`\`\n${args[0] * 0.5}\`\`\``, + inline: true, + }, + { + name: "3x Scope ADS", + value: `\`\`\`\n${args[0] * 0.33}\`\`\``, + inline: true, + }, + { + name: "4x Scope ADS", + value: `${args[0] * 0.25}`, + inline: true, + }, + { + name: "6x Scope ADS", + value: `${args[0] * 0.16}`, + inline: true, + }, + { + name: "8x Scope ADS", + value: `${args[0] * 0.12}`, + inline: true, + }, + { + name: "10x Scope ADS", + value: `${args[0] * 0.1}`, + inline: true, + } + ) + .setURL("https://hawksnestgg.wixsite.com/apexsens/apexsenscalc"); + interaction.followUp({ + embeds: [embed], + }); + } else { + const embed = new MessageEmbed() + .setDescription(`⚠ **ERROR:** The Sensitivity can be betweeen 0 & 300`) + .setColor(client.color); + interaction.followUp({ embeds: [embed] }); + } + }, +}; diff --git a/util/assets/images/Logos/STATS_ON_DUTY_V3.png b/util/assets/images/Logos/STATS_ON_DUTY_V3.png Binary files differ. diff --git a/util/assets/images/Logos/nolink-leakers.png b/util/assets/images/Logos/nolink-leakers.png Binary files differ. diff --git a/util/assets/images/Logos/roundtablepng.png b/util/assets/images/Logos/roundtablepng.png Binary files differ. diff --git a/util/assets/images/apex/apex-legends-logo-white.svg b/util/assets/images/apex/apex-legends-logo-white.svg @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + width="1030.303" + height="1000" + viewBox="0 0 1030.303 1000" + version="1.1" + id="svg9" + sodipodi:docname="apex-legends-logo-white.svg" + inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + <sodipodi:namedview + id="namedview11" + pagecolor="#505050" + bordercolor="#eeeeee" + borderopacity="1" + inkscape:pageshadow="0" + inkscape:pageopacity="0" + inkscape:pagecheckerboard="0" + showgrid="false" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" + inkscape:zoom="0.59916667" + inkscape:cx="514.88178" + inkscape:cy="499.86092" + inkscape:window-width="1920" + inkscape:window-height="1001" + inkscape:window-x="-9" + inkscape:window-y="-9" + inkscape:window-maximized="1" + inkscape:current-layer="svg9" /> + <title + id="title2">Apex Legends Symbol</title> + <defs + id="defs4" /> + <g + id="Page-1" + stroke="none" + stroke-width="1" + fill="none" + fill-rule="evenodd" + transform="translate(-285,-100)" + style="fill:#ffffff"> + <g + id="apex-legends-symbol" + transform="translate(285,100)" + fill="#130c0d" + fill-rule="nonzero" + style="fill:#ffffff"> + <polygon + id="Triangle-Copy" + points="878.78788,1000 589.76792,803.07099 757.45184,803.07099 515.15152,378.78788 273.6243,803.07099 439.49936,803.07099 151.51515,1000 0,878.78788 515.15152,0 1030.303,878.78788 " + style="fill:#ffffff" /> + </g> + </g> + <metadata + id="metadata13"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:title>Apex Legends Symbol</dc:title> + </cc:Work> + </rdf:RDF> + </metadata> +</svg>