From 0ad853bba7ced22fe7fdde817d66f2b246b37245 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 09:27:21 -0500 Subject: [PATCH] =?UTF-8?q?Remove=20k=C3=BClboard=20database=20query=20log?= =?UTF-8?q?ging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bot.js b/bot.js index 276d84d..e731f15 100644 --- a/bot.js +++ b/bot.js @@ -856,18 +856,14 @@ client.on('messageReactionAdd', (messageReaction, user) => { if (error) { console.error; } - console.log(result) if (!result.kulboard_messages) { message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed) .then(kulboardMessage => { collection.updateOne({ guild_id: message.guild.id }, { $push: { "kulboard_messages": { "original_message": `${message.id}`, "kulboard_message": `${kulboardMessage.id}` } } }); }).catch(console.error); } else { - console.log(result) - console.log(result.kulboard_messages) message.guild.channels.cache.get(kulboardChannel).messages.fetch(result.kulboard_messages[0].kulboard_message) .then(kulboardMessage => { - console.log(kulboardMessage.author.tag) kulboardMessage.edit(kulboardEmbed).catch(console.error); }).catch(console.error); } @@ -942,18 +938,14 @@ client.on('messageReactionRemove', (messageReaction, user) => { if (error) { console.error; } - console.log(result) if (!result.kulboard_messages) { message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed) .then(kulboardMessage => { collection.updateOne({ guild_id: message.guild.id }, { $push: { "kulboard_messages": { "original_message": `${message.id}`, "kulboard_message": `${kulboardMessage.id}` } } }); }).catch(console.error); } else { - console.log(result) - console.log(result.kulboard_messages) message.guild.channels.cache.get(kulboardChannel).messages.fetch(result.kulboard_messages[0].kulboard_message) .then(kulboardMessage => { - console.log(kulboardMessage.author.tag) kulboardMessage.edit(kulboardEmbed).catch(console.error); }).catch(console.error); }