From 783b876e0963f8c74e06384e33030d1266ea0291 Mon Sep 17 00:00:00 2001 From: TheUbMunster <66451362+TheUbMunster@users.noreply.github.com> Date: Mon, 22 Aug 2022 18:54:56 -0600 Subject: [PATCH] You can run commands in the command channel or log channel --- Server/DiscordBot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/DiscordBot.cs b/Server/DiscordBot.cs index f23cbac..7375b14 100644 --- a/Server/DiscordBot.cs +++ b/Server/DiscordBot.cs @@ -26,6 +26,8 @@ public class DiscordBot { }); if (Config.CommandChannel == null) Logger.Warn("You probably should set your CommandChannel in settings.json"); + if (Config.LogChannel == null) + Logger.Warn("You probably should set your LogChannel in settings.json"); if (Config.Token == null) return; Settings.LoadHandler += SettingsLoadHandler; } @@ -103,7 +105,7 @@ public class DiscordBot { if (args.Channel is DiscordDmChannel) return; //no dm'ing the bot allowed! } - else if (args.Channel.Id != CommandChannel.Id) + else if (args.Channel.Id != CommandChannel.Id && (LogChannel != null && args.Channel.Id != LogChannel.Id)) return; //run command try {