This commit is contained in:
2022-06-05 18:25:30 +03:00
parent 4fbea983da
commit fd28a166f7
6 changed files with 15 additions and 20 deletions

View File

@@ -153,7 +153,7 @@ namespace DiscordBotGUI
string current_version = Config.GetValue("Version");
if (current_version == null)
if (!Config.SetValue("Version", "0"))
Config.AddValueToVariables("Version", "0");
Config.AddValueToVariables("Version", "0", false);
string latest_version = (await ServerCom.ReadTextFromFile("https://sethdiscordbot.000webhostapp.com/Storage/Discord%20Bot/Updates/Version"))[0];
_version = latest_version;
if (current_version != latest_version) { return true; }