mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix
This commit is contained in:
@@ -67,8 +67,8 @@ module.exports = class SortingHatCommand extends Command {
|
|||||||
time: 120000
|
time: 120000
|
||||||
});
|
});
|
||||||
if (!choice.size) return msg.say('Oh no, you ran out of time! Too bad.');
|
if (!choice.size) return msg.say('Oh no, you ran out of time! Too bad.');
|
||||||
|
if (choice.first().content.toUpperCase() === 'END') return msg.say('See you next time!');
|
||||||
const answer = answers[choices.indexOf(choice.first().content.toUpperCase())];
|
const answer = answers[choices.indexOf(choice.first().content.toUpperCase())];
|
||||||
if (answer === 'END') return msg.say('See you next time!');
|
|
||||||
for (const [house, amount] of Object.entries(answer.points)) points[house] += amount;
|
for (const [house, amount] of Object.entries(answer.points)) points[house] += amount;
|
||||||
++turn;
|
++turn;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user