From 7e0793133d7d310a3ec26324bc58cec4f60d384a Mon Sep 17 00:00:00 2001 From: night0721 Date: Sat, 5 Feb 2022 09:35:26 +0800 Subject: [PATCH] fix --- command/CODM/build.js | 5 +---- util/functions/common.js | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/command/CODM/build.js b/command/CODM/build.js index d8df353..c9b79cb 100644 --- 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 index 6dc8cd9..d9d50a9 100644 --- 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,