3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-11 13:07:20 +00:00

More work on porting Utility commands

This commit is contained in:
Dragory 2020-07-06 00:53:28 +03:00
parent 55f5509705
commit f2d4eb1cdf
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();
}
},
});