From 4088e7b52c3a592f64fced92e87e8870b69ddf6a Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:28:45 +1000 Subject: [PATCH] Seems to be over now. --- src/events/messageDelete.ts | 2 +- src/events/messageUpdate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/messageDelete.ts b/src/events/messageDelete.ts index 3e1097c..92a5a15 100644 --- a/src/events/messageDelete.ts +++ b/src/events/messageDelete.ts @@ -4,7 +4,7 @@ export default { run(client:TClient, msg:Discord.Message){ if (!client.config.botSwitches.logs) return; const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel; - const disabledChannels = ['548032776830582794', '541677709487505408', '949380187668242483', '1120901022223712296'] + const disabledChannels = ['548032776830582794', '541677709487505408', '949380187668242483'] if (msg.guild?.id != client.config.mainServer.id || msg.partial || msg.author.bot || disabledChannels.includes(msg.channelId)) return; if (Discord.DiscordAPIError.name === '10008') return console.log(client.logTime(), 'Caught an unexpected error returned by Discord API. (Unknown Message)'); const embed = new client.embed().setColor(client.config.embedColorRed).setTimestamp().setAuthor({name: `Author: ${msg.author.username} (${msg.author.id})`, iconURL: `${msg.author.displayAvatarURL()}`}).setTitle('Message deleted').setDescription(`<@${msg.author.id}>\n\`${msg.author.id}\``); diff --git a/src/events/messageUpdate.ts b/src/events/messageUpdate.ts index 238eed3..8565079 100644 --- a/src/events/messageUpdate.ts +++ b/src/events/messageUpdate.ts @@ -3,7 +3,7 @@ import TClient from '../client.js'; export default { async run(client:TClient, oldMsg:Discord.Message, newMsg:Discord.Message){ if (!client.config.botSwitches.logs) return; - const disabledChannels = ['548032776830582794', '541677709487505408', '949380187668242483', '1120901022223712296'] + const disabledChannels = ['548032776830582794', '541677709487505408', '949380187668242483'] if (oldMsg.guild?.id != client.config.mainServer.id || oldMsg.author === null || oldMsg?.author.bot || oldMsg.partial || newMsg.partial || !newMsg.member || disabledChannels.includes(newMsg.channelId)) return; if (await client.bannedWords._content.findOne({_id:newMsg.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n]/g, ' ').split(' ')}) && (!client.isStaff(newMsg.member))) newMsg.delete(); if (newMsg.content === oldMsg.content) return;