local MyBotMoney = 500000
function onUpdate()
if getBotMoney() >= MyBotMoney then
newAcc()
end
end
function newAcc()
local file = io.open(getPath().."settings\\names.txt", "r");
local arr = {}
for line in file:lines() do table.insert(arr, line); end
math.randomseed(os.clock())
local name = arr[math.random(1, #arr)]
file = io.open(getPath().."settings\\surnames.txt", "r");
local arr = {}
for line in file:lines() do table.insert(arr, line); end
math.randomseed(os.clock())
local surname = arr[math.random(1, #arr)]
setBotNick(name.."_"..surname)
reconnect(1)
end