added reactions + reaction controll command (it can assign all types and setup messages)

This commit is contained in:
2022-12-28 22:28:50 +01:00
parent d1e26ac9bb
commit 16dac26a2c
5 changed files with 173 additions and 54 deletions

View File

@ -33,12 +33,14 @@ bot.on(Events.InteractionCreate, async interaction => {
// Handles Reactions
bot.on(Events.MessageReactionAdd, async (reaction, user) => {
HandleReaction(reaction, user, undefined, "add")
if (user.bot) return;
HandleReaction(reaction, user, undefined, "add", bot)
})
bot.on(Events.MessageReactionRemove, async (reaction, user) => {
HandleReaction(reaction, user, server, "remove")
if (user.bot) return;
HandleReaction(reaction, user, server, "remove", bot)
})
bot.login(process.env.TOKEN)