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

added join and leave voice channel triggers

This commit is contained in:
Almeida 2021-05-07 20:06:31 +01:00 committed by almeidx
parent 8445c37f64
commit 03ead92c19
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5
7 changed files with 207 additions and 1 deletions

View file

@ -29,6 +29,7 @@ import {
RunAutomodOnThreadDelete,
RunAutomodOnThreadUpdate,
} from "./events/runAutomodOnThreadEvents";
import { RunAutomodOnVoiceStateUpdate } from "./events/runAutomodOnVoiceStateUpdate";
import { clearOldRecentNicknameChanges } from "./functions/clearOldNicknameChanges";
import { clearOldRecentActions } from "./functions/clearOldRecentActions";
import { clearOldRecentSpam } from "./functions/clearOldRecentSpam";
@ -207,7 +208,6 @@ export const AutomodPlugin = zeppelinGuildPlugin<AutomodPluginType>()({
},
},
// prettier-ignore
events: [
RunAutomodOnJoinEvt,
RunAutomodOnMemberUpdate,
@ -215,6 +215,7 @@ export const AutomodPlugin = zeppelinGuildPlugin<AutomodPluginType>()({
RunAutomodOnThreadCreate,
RunAutomodOnThreadDelete,
RunAutomodOnThreadUpdate
RunAutomodOnVoiceStateUpdate,
// Messages use message events from SavedMessages, see onLoad below
],