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:
parent
eab62acc6b
commit
4ae3ef477a
3 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue