From 06e3b5d40affae5fdb1a936ffcf3128e1c868424 Mon Sep 17 00:00:00 2001 From: TheUbMunster <66451362+TheUbMunster@users.noreply.github.com> Date: Mon, 22 Aug 2022 16:49:13 -0600 Subject: [PATCH] Made debug message simpler --- Server/DiscordBot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/DiscordBot.cs b/Server/DiscordBot.cs index 3b933a6..ca2e86c 100644 --- a/Server/DiscordBot.cs +++ b/Server/DiscordBot.cs @@ -99,7 +99,8 @@ public class DiscordBot { DiscordClient.MessageCreated += async (_, args) => { if (args.Author.IsCurrent) return; //dont respond to commands from ourselves (prevent "sql-injection" esq attacks) #if LOG_CHANNELS_ON_COMMAND_ATTEMPT_VERBOSE - Logger.Info($"Message recieved on channel \"{args.Channel.Id}\", accepting commands from channel \"{Config.LogChannel ?? "(Any Channel)"}\", do channels match: {(args.Channel.Id.ToString() == Config.LogChannel) || (Config.LogChannel == null && !(args.Channel is DiscordDmChannel))}"); + //Logger.Info($"Message recieved on channel \"{args.Channel.Id}\", accepting commands from channel \"{Config.LogChannel ?? "(Any Channel)"}\", do channels match: {(args.Channel.Id.ToString() == Config.LogChannel) || (Config.LogChannel == null && !(args.Channel is DiscordDmChannel))}"); + Logger.Info($"cmdchannel == channel id exec ({args.Channel.Id.ToString() == Config.LogChannel})"); #endif //prevent commands via dm and non-public channels if (Config.LogChannel == null) {