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);