From e16759bc35a26abb1697f69f6c5e7aa21e45ebcc Mon Sep 17 00:00:00 2001 From: Marcus Netz Date: Wed, 28 Apr 2021 15:56:11 +0200 Subject: [PATCH] (fix) Chants were referring to spells --- commands/Chant.js | 2 +- commands/Chants.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/Chant.js b/commands/Chant.js index 35869d7..bbc945c 100644 --- a/commands/Chant.js +++ b/commands/Chant.js @@ -26,7 +26,7 @@ module.exports = { if (!isNaN(args[0])) { return message.reply(findMessage('WRONG_ARGUMENTS')); } - const Chant = getSpell({ Character: docs[0].character, chant_name: args[0] }); + const Chant = getChant({ Character: docs[0].character, chant_name: args[0] }); if (!Chant) { return message.reply(findMessage('CHANT_UNKNOWN')); } diff --git a/commands/Chants.js b/commands/Chants.js index 1d68954..e480e7c 100644 --- a/commands/Chants.js +++ b/commands/Chants.js @@ -21,14 +21,14 @@ module.exports = { if (args.length === 0) { return message.reply(ReplyChantList(createChantList(Character))); //?+ } - const Spell = getChant({ + const Chant = getChant({ Character: Character, chant_name: args[0], }); - if (!Spell) { + if (!Chant) { return message.reply(findMessage('SPELL_UNKNOWN')); } - return message.reply(ReplyChant(Spell)); + return message.reply(ReplyChant(Chant)); }); }, };