mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Don't await that either
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user