Browse Source

Remove reaction timeout message

pull/1/head
Abheek Dhawan 4 years ago
parent
commit
e3529f04bb
  1. 4
      bot/awesomescibo.mjs

4
bot/awesomescibo.mjs

@ -275,7 +275,7 @@ client.on('message', async message => {
const filter = (reaction, user) => {
return ['❌', '✅'].includes(reaction.emoji.name) && user.id === message.author.id;
};
message.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
message.awaitReactions(filter, { max: 1, time: 600000, errors: ['time'] })
.then(reaction => {
var reaction = reaction.first();
if (reaction.emoji.name === "❌") {
@ -285,7 +285,7 @@ client.on('message', async message => {
}
})
.catch(collected => {
message.channel.send("\n**REACTION TIMEOUT**");
//message.channel.send("\n**REACTION TIMEOUT**");
})
})
.catch (collected => {

Loading…
Cancel
Save