From a79790610797f39edca6b291ebedbb7509c45e04 Mon Sep 17 00:00:00 2001 From: masterhc Date: Sun, 4 Feb 2024 18:32:10 +0000 Subject: [PATCH] Clearing logs --- lib.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib.js b/lib.js index b95b538..103433e 100644 --- a/lib.js +++ b/lib.js @@ -220,12 +220,13 @@ class _Client extends Client { this.on('messageReactionAdd', (reaction, user)=> { + console.log('Lib: Message: Reaction: Added'); (async ()=> { const rule = await roleRulesM.findOne({mID:reaction.message.id,roleEmoji:reaction._emoji.id}).then(rule =>{return rule}).catch(err=>{return null}) if(rule) { - console.log(`RoleAssignment: Guild:${this.guilds.cache.get(rule.gID)} Role ${rule.roleName} given to ${user.username}`) + console.log(`RoleAssignment: Guild:${this.guilds.cache.get(rule.gID)}: Adding role ${rule.roleName} given to ${user.username}`) this.channels.cache.get(reaction.message.channelId).members.get(user.id).roles.add(rule.roleID) } })() @@ -237,7 +238,7 @@ class _Client extends Client const rule = await roleRulesM.findOne({mID:reaction.message.id,roleEmoji:reaction._emoji.id}).then(rule =>{return rule}).catch(err=>{return null}) if(rule) { - console.log(`RoleAssignment: Guild:${this.guilds.cache.get(rule.gID)}: Removing, ${user.username}'s ${rule.roleName} role. `) + console.log(`RoleAssignment: Guild:${this.guilds.cache.get(rule.gID)}: Removing ${user.username}'s ${rule.roleName} role. `) this.channels.cache.get(reaction.message.channelId).members.get(user.id).roles.remove(rule.roleID) } })()