From 2b5d7443b249e9289decde9304b146b628f72ec8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 23 Oct 2017 02:21:30 +0000 Subject: [PATCH] eslint --- commands/games/wizard-convention.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index d647e8cc..64ccd0d9 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -17,7 +17,7 @@ module.exports = class WizardConventionCommand extends Command { this.playing = new Set(); } - async run(msg) { + async run(msg) { // eslint-disable-line complexity if (this.playing.has(msg.channel.id)) return msg.say('Only one game may be occurring per channel.'); this.playing.add(msg.channel.id); try { @@ -62,8 +62,8 @@ module.exports = class WizardConventionCommand extends Command { ${questions[player.role]} Please type the number. ${valid.map(p => `**${p.id}.** ${p.user.tag}`).join('\n')} `); - const filter = res => valid.map(p => p.id.toString()).includes(res.content); - const decision = await player.user.dmChannel.awaitMessages(filter, { + const filter2 = res => valid.map(p => p.id.toString()).includes(res.content); + const decision = await player.user.dmChannel.awaitMessages(filter2, { max: 1, time: 30000 });