This commit is contained in:
night0721 2022-02-05 09:35:26 +08:00
parent 055dec1ffa
commit 7e0793133d
2 changed files with 3 additions and 6 deletions

View file

@ -669,7 +669,6 @@ module.exports = {
) )
.then(res => res.data) .then(res => res.data)
.catch(e => null); .catch(e => null);
if (!data?.cwts) { if (!data?.cwts) {
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setDescription( .setDescription(
@ -683,9 +682,7 @@ module.exports = {
return arr.push(`**${i + 1}:** ${e}`); return arr.push(`**${i + 1}:** ${e}`);
}); });
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setTitle( .setTitle(`${tag} build for ${data.weaponName} from ${data.author}`)
`${all[tag]} build for ${data.weaponName} from ${data.author}`
)
.setDescription( .setDescription(
`<:nyx_description:897379659665264650> **Description** \`\`\`\n${data.notes}\n \`\`\`` `<:nyx_description:897379659665264650> **Description** \`\`\`\n${data.notes}\n \`\`\``
) )

View file

@ -422,8 +422,8 @@ function attachmentsIdentifier(inpmsg, gun) {
// console.log(attachmentsIdentifier("ak + 5mw lazer", data.cguns[0].aments)); makeError(); // 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 + 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("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])); // console.log(attachmentsIdentifier("47 + stipplied grip tape", data.cguns[0]));
makeError(); // makeError();
function damageHandler( function damageHandler(
currDmgs, currDmgs,
currRngs, currRngs,