Fixed release Config not found bug

This commit is contained in:
2023-08-05 21:54:05 +03:00
parent 06d322b5b3
commit 6bbd68a135

View File

@@ -103,7 +103,7 @@ public class Program
if (File.Exists("./Data/Resources/token.txt")) token = File.ReadAllText("./Data/Resources/token.txt"); if (File.Exists("./Data/Resources/token.txt")) token = File.ReadAllText("./Data/Resources/token.txt");
else token = AppSettings["token"]; else token = AppSettings["token"];
#else #else
token = Config.Data["token"]; token = AppSettings["token"];
#endif #endif
var prefix = AppSettings["prefix"]; var prefix = AppSettings["prefix"];
var discordbooter = new Boot(token, prefix); var discordbooter = new Boot(token, prefix);