This commit is contained in:
Dragon Fire
2021-03-10 20:04:29 -05:00
parent 87eabbbfc9
commit fbb4c5750e
+2 -1
View File
@@ -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 = [];