Skip to content

Commit 62f9bb5

Browse files
authored
fix: remove vBot upstream version check (#1547)
1 parent b967b44 commit 62f9bb5

File tree

1 file changed

+0
-35
lines changed
  • mods/game_bot/default_configs/vBot_4.8/vBot

1 file changed

+0
-35
lines changed
Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,5 @@
11
local version = "4.8"
2-
local currentVersion
3-
local available = false
4-
5-
storage.checkVersion = storage.checkVersion or 0
6-
7-
-- check max once per 12hours
8-
if os.time() > storage.checkVersion + (12 * 60 * 60) then
9-
10-
storage.checkVersion = os.time()
11-
12-
HTTP.get("https://raw.githubusercontent.com/Vithrax/vBot/main/vBot/version.txt", function(data, err)
13-
if err then
14-
warn("[vBot updater]: Unable to check version:\n" .. err)
15-
return
16-
end
17-
18-
currentVersion = data
19-
available = true
20-
end)
21-
22-
end
232

243
UI.Label("vBot v".. version .." \n Vithrax#5814")
254
UI.Button("Official OTCv8 Discord!", function() g_platform.openUrl("https://discord.gg/yhqBE4A") end)
265
UI.Separator()
27-
28-
schedule(5000, function()
29-
30-
if not available then return end
31-
if currentVersion ~= version then
32-
33-
UI.Separator()
34-
UI.Label("New vBot is available for download! v"..currentVersion)
35-
UI.Button("Go to vBot GitHub Page", function() g_platform.openUrl("https://github.com/Vithrax/vBot") end)
36-
UI.Separator()
37-
38-
end
39-
40-
end)

0 commit comments

Comments
 (0)