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