mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Fix
This commit is contained in:
@@ -70,7 +70,8 @@ module.exports = class KinoCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async generateStory(file) {
|
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'
|
encoding: 'utf8'
|
||||||
});
|
});
|
||||||
const chunks = [];
|
const chunks = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user