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) => { const filter = (reaction, user) => {
return ['❌', '✅'].includes(reaction.emoji.name) && user.id === message.author.id; 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 => { .then(reaction => {
var reaction = reaction.first(); var reaction = reaction.first();
if (reaction.emoji.name === "❌") { if (reaction.emoji.name === "❌") {
@ -285,7 +285,7 @@ client.on('message', async message => {
} }
}) })
.catch(collected => { .catch(collected => {
message.channel.send("\n**REACTION TIMEOUT**"); //message.channel.send("\n**REACTION TIMEOUT**");
}) })
}) })
.catch (collected => { .catch (collected => {

Loading…
Cancel
Save