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:
parent
4931c95872
commit
80fb9d7b6b
7 changed files with 18 additions and 11 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue