nyx

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

commit 7e0793133d7d310a3ec26324bc58cec4f60d384a
parent 055dec1ffa39824c122556967ef7313c98828b26
Author: night0721 <[email protected]>
Date:   Sat,  5 Feb 2022 09:35:26 +0800

fix

Diffstat:
Mcommand/CODM/build.js | 5+----
Mutil/functions/common.js | 4++--
2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/command/CODM/build.js b/command/CODM/build.js @@ -669,7 +669,6 @@ module.exports = { ) .then(res => res.data) .catch(e => null); - if (!data?.cwts) { const embed = new MessageEmbed() .setDescription( @@ -683,9 +682,7 @@ module.exports = { return arr.push(`**${i + 1}:** ${e}`); }); const embed = new MessageEmbed() - .setTitle( - `${all[tag]} build for ${data.weaponName} from ${data.author}` - ) + .setTitle(`${tag} build for ${data.weaponName} from ${data.author}`) .setDescription( `<:nyx_description:897379659665264650> **Description** \`\`\`\n${data.notes}\n \`\`\`` ) diff --git a/util/functions/common.js b/util/functions/common.js @@ -422,8 +422,8 @@ function attachmentsIdentifier(inpmsg, gun) { // console.log(attachmentsIdentifier("ak + 5mw lazer", data.cguns[0].aments)); makeError(); // console.log(attachmentsIdentifier("117 + 40 round mag", data.cguns[0].aments, data.cguns[0].stats)); makeError(); // console.log(attachmentsIdentifier("117 + rtc muzzle brake, rubberized griptape, tac lazer sight, 40 round mag, no stock", data.cguns[1].aments)); makeError(); -console.log(attachmentsIdentifier("47 + stipplied grip tape", data.cguns[0])); -makeError(); +// console.log(attachmentsIdentifier("47 + stipplied grip tape", data.cguns[0])); +// makeError(); function damageHandler( currDmgs, currRngs,