mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-24 12:15:17 +00:00
Made debug message simpler
This commit is contained in:
parent
02f936816c
commit
06e3b5d40a
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue