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

Improve error handling with mutes

This commit is contained in:
Dragory 2020-09-13 22:45:02 +03:00
parent 17b4c3dc84
commit 64137bb4fa
4 changed files with 61 additions and 18 deletions

View file

@ -9,6 +9,7 @@ import { onMessageCreate } from "./util/onMessageCreate";
import { clearOldRecentActions } from "./util/clearOldRecentActions";
import { SpamVoiceJoinEvt, SpamVoiceSwitchEvt } from "./events/SpamVoiceEvt";
import { trimPluginDescription } from "../../utils";
import { LogsPlugin } from "../Logs/LogsPlugin";
const defaultOptions: PluginOptions<SpamPluginType> = {
config: {
@ -51,6 +52,8 @@ export const SpamPlugin = zeppelinPlugin<SpamPluginType>()("spam", {
`),
},
dependencies: [LogsPlugin],
configSchema: ConfigSchema,
defaultOptions,