3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

More work on porting Utility commands

This commit is contained in:
Dragory 2020-07-06 00:53:28 +03:00
parent 9bb72e0ffd
commit 017fcd93cc
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
6 changed files with 187 additions and 45 deletions

View file

@ -8,15 +8,14 @@ import { Supporters } from "../../data/Supporters";
import { ServerCmd } from "./commands/ServerCmd";
import { RolesCmd } from "./commands/RolesCmd";
import { LevelCmd } from "./commands/LevelCmd";
import { SearchCmd } from "./commands/SearchCmd";
import { BanSearchCmd } from "./commands/BanSearchCmd";
import { InfoCmd } from "./commands/InfoCmd";
export const UtilityPlugin = zeppelinPlugin<UtilityPluginType>()("utility", {
configSchema: ConfigSchema,
commands: [
LevelCmd,
RolesCmd,
ServerCmd,
],
commands: [BanSearchCmd, InfoCmd, LevelCmd, RolesCmd, SearchCmd, ServerCmd],
onLoad({ state, guild }) {
state.logs = new GuildLogs(guild.id);
@ -26,5 +25,5 @@ export const UtilityPlugin = zeppelinPlugin<UtilityPluginType>()("utility", {
state.supporters = new Supporters();
state.lastReload = Date.now();
}
},
});