Updated to OTCv8 3.1 rev 131

This commit is contained in:
OTCv8
2022-02-15 21:11:37 +00:00
parent 5a3e429d32
commit 80177bd151
136 changed files with 2685 additions and 5381 deletions

View File

@@ -190,13 +190,7 @@ function refresh()
-- storage
botStorage = {}
local path = "/bot/" .. configName .. "/storage/"
if not g_resources.directoryExists(path) then
g_resources.makeDir(path)
end
botStorageFile = path.."profile_" .. g_settings.getNumber('profile') .. ".json"
botStorageFile = "/bot/" .. configName .. "/storage.json"
if g_resources.fileExists(botStorageFile) then
local status, result = pcall(function()
return json.decode(g_resources.readFileContents(botStorageFile))
@@ -261,9 +255,7 @@ end
function online()
botButton:show()
if not modules.client_profiles.ChangedProfile then
scheduleEvent(refresh, 20)
end
scheduleEvent(refresh, 20)
end
function offline()