From 7374270dcbf038a70adea129f328d116b3745979 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 13:26:43 +0000 Subject: [PATCH] Don't await that either --- commands/random/mathgame.js | 2 +- commands/random/typinggame.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/random/mathgame.js b/commands/random/mathgame.js index 1f0953ab..d565146b 100644 --- a/commands/random/mathgame.js +++ b/commands/random/mathgame.js @@ -48,7 +48,7 @@ module.exports = class MathGameCommand extends commando.Command { .setTitle('You have **ten** seconds to answer:') .setDescription(randomExpression); await message.channel.sendEmbed(embed).then(() => { - await message.channel.awaitMessages(response => response.content === solved.toString() && response.author.id === message.author.id, { + message.channel.awaitMessages(response => response.content === solved.toString() && response.author.id === message.author.id, { max: 1, time: 10000, errors: ['time'], diff --git a/commands/random/typinggame.js b/commands/random/typinggame.js index 8c8250e2..ae864ad4 100644 --- a/commands/random/typinggame.js +++ b/commands/random/typinggame.js @@ -58,7 +58,7 @@ module.exports = class TypingGameCommand extends commando.Command { .setTitle('You have **' + levelWord + '** seconds to type:') .setDescription(randomSentence); await message.channel.sendEmbed(embed).then(() => { - await message.channel.awaitMessages(response => response.content === randomSentence && response.author.id === message.author.id, { + message.channel.awaitMessages(response => response.content === randomSentence && response.author.id === message.author.id, { max: 1, time: time, errors: ['time'],