mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-18 04:40:59 -05:00
Compare commits
2 Commits
955a0a8f7b
...
89a8bd2c4c
Author | SHA1 | Date | |
---|---|---|---|
|
89a8bd2c4c | ||
|
2e8299491d |
@ -4,7 +4,7 @@ import Logger from '../helpers/Logger.js';
|
||||
export default class Automoderator {
|
||||
private static logPrefix:string = 'Automod';
|
||||
private static lockQuery:Set<Discord.Snowflake> = new Set();
|
||||
static scanMsg =(message:Discord.Message)=>message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]|[]|ing\b|ed\b/g, '').split(' ').join('');
|
||||
static scanMsg =(message:Discord.Message)=>message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]|[]|ing\b|ed\b|es\b/g, '').split(' ').join('');
|
||||
static async repeatedMessages(client:TClient, message:Discord.Message, action:'mute'|'ban'|'softban', thresholdTime:number, thresholdAmount:number, type:string, duration:string, reason:string) {
|
||||
const now = Date.now();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user