mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix
This commit is contained in:
@@ -88,7 +88,8 @@ module.exports = class KinoCommand extends Command {
|
|||||||
|
|
||||||
async generateStory(file) {
|
async generateStory(file) {
|
||||||
const filename = stories.find(story => story.toLowerCase() === file);
|
const filename = stories.find(story => story.toLowerCase() === file);
|
||||||
const story = await readFile(path.join(__dirname, '..', '..', 'assets', 'txt', 'kino', `${filename}.txt`), {
|
const num = stories.indexOf(filename).toString().padStart(2, '0');
|
||||||
|
const story = await readFile(path.join(__dirname, '..', '..', 'assets', 'txt', 'kino', `${num} ${filename}.txt`), {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
});
|
});
|
||||||
const chunks = [];
|
const chunks = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user