2020-07-05 05:00:54 +03:00
|
|
|
import { zeppelinPlugin } from "../ZeppelinPluginBlueprint";
|
|
|
|
import { ConfigSchema, UtilityPluginType } from "./types";
|
|
|
|
import { GuildLogs } from "../../data/GuildLogs";
|
|
|
|
import { GuildCases } from "../../data/GuildCases";
|
|
|
|
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
|
|
|
import { GuildArchives } from "../../data/GuildArchives";
|
|
|
|
import { Supporters } from "../../data/Supporters";
|
|
|
|
import { ServerCmd } from "./commands/ServerCmd";
|
|
|
|
import { RolesCmd } from "./commands/RolesCmd";
|
|
|
|
import { LevelCmd } from "./commands/LevelCmd";
|
2020-07-06 00:53:28 +03:00
|
|
|
import { SearchCmd } from "./commands/SearchCmd";
|
|
|
|
import { BanSearchCmd } from "./commands/BanSearchCmd";
|
|
|
|
import { InfoCmd } from "./commands/InfoCmd";
|
2020-07-06 01:51:48 +03:00
|
|
|
import { NicknameResetCmd } from "./commands/NicknameResetCmd";
|
|
|
|
import { NicknameCmd } from "./commands/NicknameCmd";
|
|
|
|
import { PingCmd } from "./commands/PingCmd";
|
|
|
|
import { SourceCmd } from "./commands/SourceCmd";
|
|
|
|
import { ContextCmd } from "./commands/ContextCmd";
|
|
|
|
import { VcmoveCmd } from "./commands/VcmoveCmd";
|
|
|
|
import { HelpCmd } from "./commands/HelpCmd";
|
|
|
|
import { AboutCmd } from "./commands/AboutCmd";
|
2020-07-05 05:00:54 +03:00
|
|
|
|
|
|
|
export const UtilityPlugin = zeppelinPlugin<UtilityPluginType>()("utility", {
|
|
|
|
configSchema: ConfigSchema,
|
|
|
|
|
2020-07-06 01:02:55 +03:00
|
|
|
// prettier-ignore
|
|
|
|
commands: [
|
2020-07-06 01:51:48 +03:00
|
|
|
SearchCmd,
|
2020-07-06 01:02:55 +03:00
|
|
|
BanSearchCmd,
|
|
|
|
InfoCmd,
|
|
|
|
LevelCmd,
|
|
|
|
RolesCmd,
|
|
|
|
ServerCmd,
|
2020-07-06 01:51:48 +03:00
|
|
|
NicknameResetCmd,
|
|
|
|
NicknameCmd,
|
|
|
|
PingCmd,
|
|
|
|
SourceCmd,
|
|
|
|
ContextCmd,
|
|
|
|
VcmoveCmd,
|
|
|
|
HelpCmd,
|
|
|
|
AboutCmd,
|
2020-07-06 01:02:55 +03:00
|
|
|
],
|
2020-07-05 05:00:54 +03:00
|
|
|
|
|
|
|
onLoad({ state, guild }) {
|
|
|
|
state.logs = new GuildLogs(guild.id);
|
|
|
|
state.cases = GuildCases.getGuildInstance(guild.id);
|
|
|
|
state.savedMessages = GuildSavedMessages.getGuildInstance(guild.id);
|
|
|
|
state.archives = GuildArchives.getGuildInstance(guild.id);
|
|
|
|
state.supporters = new Supporters();
|
|
|
|
|
|
|
|
state.lastReload = Date.now();
|
2020-07-06 00:53:28 +03:00
|
|
|
},
|
2020-07-05 05:00:54 +03:00
|
|
|
});
|