diff --git a/mods/game_bot/default_configs/vBot_4.8/vBot/main.lua b/mods/game_bot/default_configs/vBot_4.8/vBot/main.lua index 2bf45d63f0..984240ae24 100644 --- a/mods/game_bot/default_configs/vBot_4.8/vBot/main.lua +++ b/mods/game_bot/default_configs/vBot_4.8/vBot/main.lua @@ -1,40 +1,5 @@ local version = "4.8" -local currentVersion -local available = false - -storage.checkVersion = storage.checkVersion or 0 - --- check max once per 12hours -if os.time() > storage.checkVersion + (12 * 60 * 60) then - - storage.checkVersion = os.time() - - HTTP.get("https://raw.githubusercontent.com/Vithrax/vBot/main/vBot/version.txt", function(data, err) - if err then - warn("[vBot updater]: Unable to check version:\n" .. err) - return - end - - currentVersion = data - available = true - end) - -end UI.Label("vBot v".. version .." \n Vithrax#5814") UI.Button("Official OTCv8 Discord!", function() g_platform.openUrl("https://discord.gg/yhqBE4A") end) UI.Separator() - -schedule(5000, function() - - if not available then return end - if currentVersion ~= version then - - UI.Separator() - UI.Label("New vBot is available for download! v"..currentVersion) - UI.Button("Go to vBot GitHub Page", function() g_platform.openUrl("https://github.com/Vithrax/vBot") end) - UI.Separator() - - end - -end)