3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

feat: add automod thread_archive and thread_unarchive triggers (#292)

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-10-31 20:08:29 +00:00 committed by GitHub
parent 6709115166
commit 446f188e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 160 additions and 1 deletions

View file

@ -24,7 +24,11 @@ import { RunAutomodOnJoinEvt, RunAutomodOnLeaveEvt } from "./events/RunAutomodOn
import { RunAutomodOnMemberUpdate } from "./events/RunAutomodOnMemberUpdate";
import { runAutomodOnMessage } from "./events/runAutomodOnMessage";
import { runAutomodOnModAction } from "./events/runAutomodOnModAction";
import { RunAutomodOnThreadCreate, RunAutomodOnThreadDelete } from "./events/runAutomodOnThreadEvents";
import {
RunAutomodOnThreadCreate,
RunAutomodOnThreadDelete,
RunAutomodOnThreadUpdate,
} from "./events/runAutomodOnThreadEvents";
import { clearOldRecentNicknameChanges } from "./functions/clearOldNicknameChanges";
import { clearOldRecentActions } from "./functions/clearOldRecentActions";
import { clearOldRecentSpam } from "./functions/clearOldRecentSpam";
@ -208,6 +212,7 @@ export const AutomodPlugin = zeppelinGuildPlugin<AutomodPluginType>()({
RunAutomodOnLeaveEvt,
RunAutomodOnThreadCreate,
RunAutomodOnThreadDelete,
RunAutomodOnThreadUpdate
// Messages use message events from SavedMessages, see onLoad below
],