mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Beep
This commit is contained in:
@@ -44,8 +44,10 @@ module.exports = class QuizletGameCommand extends Command {
|
||||
max: 1,
|
||||
time: 30000
|
||||
});
|
||||
if (!msgs.size || msgs.first().content.toLowerCase() !== term.term.toLowerCase()) {
|
||||
if (msgs.first().content.toLowerCase() === 'end game') break;
|
||||
if (!msgs.size) break;
|
||||
const choice = msgs.first().content.toLowerCase();
|
||||
if (choice === 'end game') break;
|
||||
if (choice !== term.term.toLowerCase()) {
|
||||
await msg.say(`Nope, sorry, it was ${term.term}.`);
|
||||
if (seen.has(term.term)) seen.delete(term.term);
|
||||
terms.push(term);
|
||||
|
||||
Reference in New Issue
Block a user