mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Break
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
this.sessions.set(msg.channel.id, { progress: null });
|
this.sessions.set(msg.channel.id, { progress: null });
|
||||||
while (this.sessions.get(msg.channel.id).progress < 99) {
|
while (this.sessions.get(msg.channel.id).progress < 99) {
|
||||||
const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans);
|
const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans);
|
||||||
if (this.sessions.get(msg.channel.id).step <= 80) break;
|
if (this.sessions.get(msg.channel.id).step >= 80) break;
|
||||||
const answers = data.answers.map(answer => answer.answer.toLowerCase());
|
const answers = data.answers.map(answer => answer.answer.toLowerCase());
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
**${++data.step}.** ${data.question}
|
**${++data.step}.** ${data.question}
|
||||||
|
|||||||
Reference in New Issue
Block a user