mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Run Automod on message edits
This commit is contained in:
parent
238e66474a
commit
130afa61eb
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
|
|||
|
||||
this.onMessageCreateFn = msg => this.onMessageCreate(msg);
|
||||
this.savedMessages.events.on("create", this.onMessageCreateFn);
|
||||
this.savedMessages.events.on("update", this.onMessageCreateFn);
|
||||
}
|
||||
|
||||
protected getModActions(): ModActionsPlugin {
|
||||
|
@ -365,6 +366,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
|
|||
protected onUnload() {
|
||||
this.unloaded = true;
|
||||
this.savedMessages.events.off("create", this.onMessageCreateFn);
|
||||
this.savedMessages.events.off("update", this.onMessageCreateFn);
|
||||
clearInterval(this.recentActionClearInterval);
|
||||
clearInterval(this.recentSpamClearInterval);
|
||||
clearInterval(this.recentNicknameChangesClearInterval);
|
||||
|
|
Loading…
Add table
Reference in a new issue