From f0d837190a764f214f1c07db8db5bc6873d3bf2e Mon Sep 17 00:00:00 2001 From: "Robin C. Ladiges" Date: Mon, 10 Oct 2022 21:55:24 +0200 Subject: [PATCH] only warn about the Discord channel settings when a Token is set Servers that don't use Discord (default settings) don't need to be warned about not setting Discord channels. --- Server/DiscordBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/DiscordBot.cs b/Server/DiscordBot.cs index 8fc10fb..cf1457a 100644 --- a/Server/DiscordBot.cs +++ b/Server/DiscordBot.cs @@ -24,11 +24,11 @@ public class DiscordBot { Task.Run(Reconnect); return "Restarting Discord bot"; }); + if (Config.Token == null) return; 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; }