From fbb4c5750e37fea5dbf7eb845f6e5093a2e5687b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Mar 2021 20:04:29 -0500 Subject: [PATCH] Fix --- commands/other/kino.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/other/kino.js b/commands/other/kino.js index 289bbf31..483fb533 100644 --- a/commands/other/kino.js +++ b/commands/other/kino.js @@ -70,7 +70,8 @@ module.exports = class KinoCommand extends Command { } async generateStory(file) { - const story = await readFile(path.join(__dirname, '..', '..', 'assets', 'txt', 'kino', file), { + const filename = stories.find(story => story.toLowerCase() === file); + const story = await readFile(path.join(__dirname, '..', '..', 'assets', 'txt', 'kino', filename), { encoding: 'utf8' }); const chunks = [];