mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -95,7 +95,7 @@ module.exports = class KinoCommand extends Command {
|
||||
const chunks = [];
|
||||
let currentChunk = '';
|
||||
for (const paragraph of story.split('\n\n')) {
|
||||
if (paragraph === '***') {
|
||||
if (paragraph === '***' && currentChunk) {
|
||||
chunks.push(currentChunk);
|
||||
currentChunk = '***\n\n';
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user