Skip to content

Commit a68ecf6

Browse files
authored
vBot remove upstream version check (#82)
vBot upstream has been abandoned, last commit was in 2022, PR's are being ignored (for example Vithrax/vBot#18 has been ignored since 2024) and the check may cause sporadic network failures: ``` WARNING: [BOT] [vBot updater]: Unable to check version: HttpSession timeout after 2 seconds ERROR: TCP connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ERROR: HttpSession unable to connect https://raw.githubusercontent.com/Vithrax/vBot/main/vBot/version.txt: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ```
1 parent 9775fc4 commit a68ecf6

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

  • modules/game_bot/default_configs/vBot_4.8/vBot
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,4 @@
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
23-
242
UI.Label("vBot v".. version .." \n Vithrax#5814")
253
UI.Button("Official OTCv8 Discord!", function() g_platform.openUrl("https://discord.gg/yhqBE4A") end)
264
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)