Make a test command

This commit is contained in:
Helloyunho 2020-12-24 09:59:01 +09:00
parent 9e6d2c1047
commit 315fd0d0da

View file

@ -112,6 +112,17 @@ client.on('messageCreate', async (msg: Message) => {
} else {
msg.channel.send('Failed...')
}
} else if (msg.content === '!react') {
msg.addReaction('🤔')
}
})
client.on('messageReactionRemove', (reaction, user) => {
const msg = reaction.message
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (reaction.me && reaction.emoji.getEmojiString === '🤔') {
msg.removeReaction(reaction.emoji)
}
})