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();
|
const reaction = collected.first();
|
||||||
//VERY rough while statement should maybe work...? Need to update the bot and see
|
//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
|
//what happens when it runs since I don't write in JS
|
||||||
while True:
|
while (1) {
|
||||||
if (reaction.emoji === client.emojis.cache.get(config.emoteID)):
|
if (reaction.emoji === client.emojis.cache.get(config.emoteID)) {
|
||||||
message.reply("Let's start! <@" + value + ">")
|
message.reply("Let's start! <@" + value + ">")
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.awaitReactions(filter, {max: 1, time: 30000, errors: ['time']})
|
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