3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-13 05:15:02 +00:00

automod: tweaks/fixes to spam detection

This commit is contained in:
Dragory 2020-07-30 22:47:33 +03:00
parent 4931c95872
commit 80fb9d7b6b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
7 changed files with 18 additions and 11 deletions

View file

@ -0,0 +1,5 @@
import { SavedMessage } from "../../../data/entities/SavedMessage";
export function getMessageSpamIdentifier(message: SavedMessage, perChannel: boolean) {
return perChannel ? `${message.channel_id}-${message.user_id}` : message.user_id;
}