Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions mods/game_bot/default_configs/vBot_4.8/vBot/main.lua
Original file line number Diff line number Diff line change
@@ -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)