- Версия MoonLoader
- Другое
Нужно чтобы бот заходил в xx:03-18 минут, рандомно от третьей до 18 минуты часа, но почему-то оно пикает всех ботов в одно время
Lua:
onLoad = function()
getLastUpdate()
get_telegram_updates()
newTask(function ()
while true do wait(55)
check_update ();
end
end)
newTask(function ()
while true do wait(220)
math.randomseed(os.clock())
local randomconnect = tostring(math.random(8, 18))
if os.date('%M') == randomconnect then
if not HEADWAY.CONNECT then
HEADWAY.CONNECT = true;
reconnect(2000);
end
elseif os.date('%M') == '01' then
if HEADWAY.CONNECT then
HEADWAY.CONNECT = false;
reconnect(2000);
end
end
end
end)