From 3d60aeabf01aa765b7e53388a1918ac0dd9c7e64 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 17:07:15 -0500 Subject: [PATCH] Remove unnecessary commented code --- index.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/index.js b/index.js index 9393c2b..ccf3202 100644 --- a/index.js +++ b/index.js @@ -829,34 +829,4 @@ client.on('roleUpdate', (oldRole, newRole) => { }); }); -/*client.on('userUpdate', (oldUser, newUser) => { - if (oldUser.bot) { - return; - } - const oldUserTag = oldUser.tag; - const newUserTag = newUser.tag; - const oldUserStatus = oldUser.presence.status; - const newUserStatus = newUser.presence.status; - const oldAvatarURL = oldUser.avatarURL(); - const newAvatarURL = newUser.avatarURL(); - - const userUpdateEmbed = new Discord.MessageEmbed() - .setTitle("Channel Created") - .addField("Tag", `${oldUserTag} >> ${newUserTag}`) - .addField("Status", `${oldUserStatus} >> ${newUserStatus}`) - .setThumbnail(oldAvatarURL) - .setImage(newAvatarURL) - .setTimestamp() - .setColor('00aaff'); - collection.findOne({ guild_id: channel.guild.id}, (error, result) => { - if(error) { - console.error; - } - botLogsChannel = result.bot_logs_id; - if (client.channels.cache.get(botLogsChannel)) { - client.channels.cache.get(botLogsChannel).send(userUpdateEmbed).catch(console.error); - } - }); -});*/ - client.login(process.env.BOT_TOKEN);