You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updatePath = "/JaredScar/Badger_Discord_API" -- your git user/repo path
resourceName = "Badger_Discord_API ("..GetCurrentResourceName()..")" -- the resource name
function checkVersion(err,responseText, headers)
curVersion = LoadResourceFile(GetCurrentResourceName(), "version.txt") -- make sure the "version" file actually exists in your resource root!
if curVersion ~= responseText and tonumber(curVersion) < tonumber(responseText) then
print("\n###############################")
print("\n"..resourceName.." is outdated, should be: "..responseText.."\nis: "..curVersion.."\nplease update it from https://github.com"..updatePath.."")
print("\n###############################")
elseif tonumber(curVersion) > tonumber(responseText) then
print("You somehow skipped a few versions of "..resourceName.." or the git went offline, if it's still online I advise you to update...")