3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Include empty config in add_server bot control command

This commit is contained in:
Dragory 2020-10-10 15:29:23 +03:00
parent eab62acc6b
commit 4ae3ef477a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 11 additions and 0 deletions

View file

@ -13,6 +13,7 @@ import { AllowServerCmd } from "./commands/AllowServerCmd";
import { DisallowServerCmd } from "./commands/DisallowServerCmd";
import { AddDashboardUserCmd } from "./commands/AddDashboardUserCmd";
import { RemoveDashboardUserCmd } from "./commands/RemoveDashboardUserCmd";
import { Configs } from "../../data/Configs";
const defaultOptions = {
config: {
@ -40,6 +41,7 @@ export const BotControlPlugin = zeppelinGlobalPlugin<BotControlPluginType>()("bo
onLoad(pluginData) {
pluginData.state.archives = new GuildArchives(0);
pluginData.state.allowedGuilds = new AllowedGuilds();
pluginData.state.configs = new Configs();
if (getActiveReload()) {
const [guildId, channelId] = getActiveReload();