mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
React on answer in lie-swatter
This commit is contained in:
@@ -69,7 +69,11 @@ module.exports = class LieSwatterCommand extends Command {
|
||||
const filter = res => {
|
||||
if (!awaitedPlayers.includes(res.author.id)) return false;
|
||||
const answer = res.content.toLowerCase();
|
||||
return trueOptions.includes(answer) || falseOptions.includes(answer);
|
||||
if (trueOptions.includes(answer) || falseOptions.includes(answer)) {
|
||||
res.react(SUCCESS_EMOJI_ID || '✅').catch(() => null);
|
||||
return true;
|
||||
};
|
||||
return false;
|
||||
};
|
||||
const msgs = await msg.channel.awaitMessages(filter, {
|
||||
max: pts.size,
|
||||
|
||||
Reference in New Issue
Block a user