mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 15:13:26 +02:00
Version 2.5.4 - http://otclient.net/showthread.php?tid=329
This commit is contained in:
@@ -10,7 +10,7 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
|
||||
end
|
||||
if ext[#ext]:lower() == "ui" or ext[#ext]:lower() == "otui" then
|
||||
table.insert(uiFiles, file)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if #luaFiles == 0 then
|
||||
@@ -74,6 +74,13 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
|
||||
context.tonumber = tonumber
|
||||
context.type = type
|
||||
context.pcall = pcall
|
||||
context.os = {
|
||||
time = os.time,
|
||||
date = os.date,
|
||||
difftime = os.difftime,
|
||||
date = os.date,
|
||||
clock = os.clock
|
||||
}
|
||||
context.load = function(str) return assert(load(str, nil, nil, context)) end
|
||||
context.loadstring = context.load
|
||||
context.assert = assert
|
||||
|
@@ -58,6 +58,7 @@ context.BotServer.init = function(name, channel)
|
||||
end
|
||||
context.BotServer._wasConnected = false
|
||||
context.BotServer._websocket = nil
|
||||
context.BotServer.ping = 0
|
||||
context.BotServer.init(name, channel)
|
||||
end
|
||||
}, context.BotServer.timeout)
|
||||
|
Reference in New Issue
Block a user