mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 08:20:58 -05:00
Fix scanMsg not filtering the message properly.
This commit is contained in:
parent
b0f1424cb4
commit
86cf4d50d6
@ -6,7 +6,7 @@ export default class Automoderator {
|
||||
return arr.includes(message.channelId);
|
||||
}
|
||||
static scanMsg(message:Discord.Message){
|
||||
return message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]/g, '').split(' ')
|
||||
return message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]|ing\b/g, '').split(' ')
|
||||
}
|
||||
static async repeatedMessages(client:TClient, message:Discord.Message, thresholdTime:number, thresholdAmount:number, type:string, muteTime:string, muteReason:string){
|
||||
if (client.repeatedMessages[message.author.id]){
|
||||
|
Loading…
Reference in New Issue
Block a user