File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
mods/game_bot/default_configs/vBot_4.8/vBot Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change 11local 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
243UI .Label (" vBot v" .. version .. " \n Vithrax#5814" )
254UI .Button (" Official OTCv8 Discord!" , function () g_platform .openUrl (" https://discord.gg/yhqBE4A" ) end )
265UI .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 )
You can’t perform that action at this time.
0 commit comments