mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Fix
This commit is contained in:
@@ -62,7 +62,7 @@ module.exports = class TwentyQuestionsCommand extends Command {
|
||||
const answers = question.answers.map(answer => answer.text.toLowerCase());
|
||||
const rowCount = Math.ceil(answers.length / 5);
|
||||
const rows = [];
|
||||
for (let i = 0; i < rowCount; i++) rows.push(new MessageActionRow());
|
||||
for (let i = 0; i <= rowCount; i++) rows.push(new MessageActionRow());
|
||||
for (let i = 0; i < answers.length; i++) {
|
||||
const answer = answers[i];
|
||||
const row = rows[i % 5];
|
||||
|
||||
Reference in New Issue
Block a user