diff --git a/config/config.json.default b/config/config.json.default index 9b70a96e9280ec59448ee9f300438bd81f5bec99..ce3496072f8d26e384b3c2a58237226a488d9bde 100644 --- a/config/config.json.default +++ b/config/config.json.default @@ -2,9 +2,7 @@ "locale": "de-DE", "commandPrefix": "!", "maxMessageLength": "2000", - "moderationChannelIds": [ - "0" - ], + "moderationChannelId": "0", "allowedCountries": [ "Germany" ], diff --git a/scripts/utility/config.ts b/scripts/utility/config.ts index 9bb55842e21c3bbd812e7ae9f6b9f5eeec3f1bd5..e9bc1a5b902f869da2dc65af302cdeabaebc5941 100644 --- a/scripts/utility/config.ts +++ b/scripts/utility/config.ts @@ -8,7 +8,7 @@ interface MainConfig locale: string; commandPrefix: string; maxMessageLength: number; - moderationChannelIds: string[]; + moderationChannelId: string; allowedCountries: string[]; currentEvent: WichtelEvent; eventHistory: WichtelEvent[]; diff --git a/scripts/wichtelbot/message/messageHandler.ts b/scripts/wichtelbot/message/messageHandler.ts index 05ec854bd401dde32f2579e8728a4d5724978712..98d84de7161284aca32f294bec98cc23ea417a63 100644 --- a/scripts/wichtelbot/message/messageHandler.ts +++ b/scripts/wichtelbot/message/messageHandler.ts @@ -230,7 +230,7 @@ export default class MessageHandler let messageFunction: CommandHandlerFunction | undefined; - if (Config.main.moderationChannelIds.includes(message.channel.id)) + if (message.channel.id === Config.main.moderationChannelId) { // Moderation: messageFunction = this.moderatorCommands.get(message.command);