mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Automod work
This commit is contained in:
parent
140ba84544
commit
f657b169df
32 changed files with 1099 additions and 5 deletions
37
backend/src/plugins/Automod/triggers/availableTriggers.ts
Normal file
37
backend/src/plugins/Automod/triggers/availableTriggers.ts
Normal file
|
@ -0,0 +1,37 @@
|
|||
import * as t from "io-ts";
|
||||
import { MatchWordsTrigger } from "./matchWords";
|
||||
import { AutomodTriggerBlueprint } from "../helpers";
|
||||
import { MessageSpamTrigger } from "./messageSpam";
|
||||
import { MentionSpamTrigger } from "./mentionSpam";
|
||||
import { LinkSpamTrigger } from "./linkSpam";
|
||||
import { AttachmentSpamTrigger } from "./attachmentSpam";
|
||||
import { EmojiSpamTrigger } from "./emojiSpam";
|
||||
import { LineSpamTrigger } from "./lineSpam";
|
||||
import { CharacterSpamTrigger } from "./characterSpam";
|
||||
import { MatchRegexTrigger } from "./matchRegex";
|
||||
|
||||
export const availableTriggers: Record<string, AutomodTriggerBlueprint<any, any>> = {
|
||||
match_words: MatchWordsTrigger,
|
||||
match_regex: MatchRegexTrigger,
|
||||
|
||||
message_spam: MessageSpamTrigger,
|
||||
mention_spam: MentionSpamTrigger,
|
||||
link_spam: LinkSpamTrigger,
|
||||
attachment_spam: AttachmentSpamTrigger,
|
||||
emoji_spam: EmojiSpamTrigger,
|
||||
line_spam: LineSpamTrigger,
|
||||
character_spam: CharacterSpamTrigger,
|
||||
};
|
||||
|
||||
export const AvailableTriggers = t.type({
|
||||
match_words: MatchWordsTrigger.configType,
|
||||
match_regex: MatchRegexTrigger.configType,
|
||||
|
||||
message_spam: MessageSpamTrigger.configType,
|
||||
mention_spam: MentionSpamTrigger.configType,
|
||||
link_spam: LinkSpamTrigger.configType,
|
||||
attachment_spam: AttachmentSpamTrigger.configType,
|
||||
emoji_spam: EmojiSpamTrigger.configType,
|
||||
line_spam: LineSpamTrigger.configType,
|
||||
character_spam: CharacterSpamTrigger.configType,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue