From 04024dea2e8c7b2285bba419e389fac8e0e0f0f2 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:50:38 +1100 Subject: [PATCH] Hopefully I ironed out the issues in phishingDetection module. --- src/events/messageCreate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 9d0d957..86de386 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -5,7 +5,7 @@ import CmdTrigger from '../modules/CmdModule.js'; import Logger from '../helpers/Logger.js'; import ConfigHelper from '../helpers/ConfigHelper.js'; import Automoderator from '../components/Automod.js'; -import __PRIVATE from '../private/_.js'; +import __PRIVATE__ from '../private/_.js'; import MessageTool from '../helpers/MessageTool.js'; export default class MessageCreate { static async run(client:TClient, message:Discord.Message) { @@ -17,12 +17,12 @@ export default class MessageCreate { const automodFailReason = 'msg got possibly deleted by another bot.'; const automodRules = { phishingDetection: { - check: async()=>await __PRIVATE.phishingDetection(message), + check: async()=>await __PRIVATE__.phishingDetection(message), action: async()=>{ automodded = true; message.delete().catch(()=>Logger.console('log', 'AUTOMOD:PHISHING', automodFailReason)); message.channel.send('Phishing links aren\'t allowed here. Nice try though!').then(msg=>setTimeout(()=>msg.delete(), 15000)); - await Automoderator.repeatedMessages(client, message, 'softban', 60000, 2, 'phish', null, 'Phishing/scam link'); + await Automoderator.repeatedMessages(client, message, 'mute', 60000, 3, 'phish', '15m', 'Phishing/scam link'); } }, prohibitedWords: {