This commit is contained in:
parent
c8c9a77a5f
commit
aa59eb6fa6
1 changed files with 5 additions and 11 deletions
10
index.js
10
index.js
|
@ -117,23 +117,17 @@ client.registry
|
||||||
|
|
||||||
if (reaction.emoji.name === '🌟' && reaction.count === 4) {
|
if (reaction.emoji.name === '🌟' && reaction.count === 4) {
|
||||||
const channel = client.channels.find(channel => channel.name === "starboard");
|
const channel = client.channels.find(channel => channel.name === "starboard");
|
||||||
try {
|
|
||||||
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
|
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
|
||||||
}
|
.catch
|
||||||
catch {
|
|
||||||
console.error('There is no starboard')
|
console.error('There is no starboard')
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (reaction.emoji.name === '✡' && reaction.count === 4) {
|
if (reaction.emoji.name === '✡' && reaction.count === 4) {
|
||||||
const channel = client.channels.find(channel => channel.name === "shameboard");
|
const channel = client.channels.find(channel => channel.name === "shameboard");
|
||||||
try {
|
|
||||||
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
|
channel.send(`From the channel: **${messageChannel}**\n${messageAuthor}\n${messageContent}\n${messageAttachments}`)
|
||||||
}
|
.catch
|
||||||
catch {
|
|
||||||
console.error('There is no shameboard')
|
console.error('There is no shameboard')
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
client.on('error', console.error);
|
client.on('error', console.error);
|
||||||
|
|
Loading…
Reference in a new issue