mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user