Syntax errors fixed!
This commit is contained in:
parent
cc58339889
commit
3dd1780fa4
18
src/index.js
18
src/index.js
@ -105,15 +105,17 @@ client.on('message', async message => {
|
||||
const reaction = collected.first();
|
||||
//VERY rough while statement should maybe work...? Need to update the bot and see
|
||||
//what happens when it runs since I don't write in JS
|
||||
while True:
|
||||
if (reaction.emoji === client.emojis.cache.get(config.emoteID)):
|
||||
message.reply("Let's start! <@" + value + ">")
|
||||
.then(() => {
|
||||
message.awaitReactions(filter, {max: 1, time: 30000, errors: ['time']})
|
||||
}
|
||||
while (1) {
|
||||
if (reaction.emoji === client.emojis.cache.get(config.emoteID)) {
|
||||
message.reply("Let's start! <@" + value + ">")
|
||||
.then(() => {
|
||||
message.awaitReactions(filter, {max: 1, time: 30000, errors: ['time']})
|
||||
}).catch( err => {
|
||||
console.error("Something went wrong awaiting reactions", err )
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
else:
|
||||
break
|
||||
})
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user