This commit is contained in:
2022-10-07 13:36:15 +03:00
parent 7bc9db03f0
commit 6fc491a0d6
4 changed files with 33 additions and 9 deletions

View File

@@ -37,6 +37,7 @@ public class Program
PreLoadComponents().Wait();
if (!Config.ContainsKey("ServerID") || (!Config.ContainsKey("token") || Config.GetValue<string>("token") == null || (Config.GetValue<string>("token")?.Length != 70 && Config.GetValue<string>("token")?.Length != 59)) || (!Config.ContainsKey("prefix") || Config.GetValue<string>("prefix") == null || Config.GetValue<string>("prefix")?.Length != 1) || (args.Length > 0 && args[0] == "/newconfig"))
{
Application.Init();