From 73d0dd07355133b094b9b3cd88684331d4cbe609 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Mar 2021 20:38:43 -0500 Subject: [PATCH] Fix --- commands/other/kino.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/commands/other/kino.js b/commands/other/kino.js index 081231bb..76a39967 100644 --- a/commands/other/kino.js +++ b/commands/other/kino.js @@ -33,16 +33,16 @@ module.exports = class KinoCommand extends Command { \`\`\` `, type: 'string', - validate: story => { - if (stories.some(story => story.toLowerCase() === story.toLowerCase())) return true; - const num = Number.parseInt(story, 10); + validate: choice => { + if (stories.some(story => choice.toLowerCase() === story.toLowerCase())) return true; + const num = Number.parseInt(choice, 10); return Boolean(stories[num]); }, - parse: story => { - if (stories.some(story => story.toLowerCase() === story.toLowerCase())) { - return story.toLowerCase(); + parse: choice => { + if (stories.some(story => choice.toLowerCase() === story.toLowerCase())) { + return choice.toLowerCase(); } - const num = Number.parseInt(story, 10); + const num = Number.parseInt(choice, 10); return stories[num]; } }