This commit is contained in:
Loic Bersier 2018-12-02 22:18:32 +01:00
parent c8c9a77a5f
commit aa59eb6fa6

View file

@ -117,24 +117,18 @@ client.registry
if (reaction.emoji.name === '🌟' && reaction.count === 4) {
const channel = client.channels.find(channel => channel.name === "starboard");
try {
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
}
catch {
console.error('There is no starboard')
}
.catch
console.error('There is no starboard')
}
if (reaction.emoji.name === '✡' && reaction.count === 4) {
const channel = client.channels.find(channel => channel.name === "shameboard");
try {
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
}
catch {
console.error('There is no shameboard')
}
.catch
console.error('There is no shameboard')
}
})
})
client.on('error', console.error);
process.on('unhandledRejection', error => console.error('Uncaught Promise Rejection', error));