Hi all,
can anyone make a script wherein a bot in the nick list would show the local time and the description field should show the text as "Local time"
eg:- Time 23:34 | Local time |
thx.
Try this..-- timebot by WooshMan -- landofps.ath.cx
-- Converted to Lua5 By Jelf 10/03/05
-- Changed : to . to work with Ptokax 16.06 and later
-- creates a dummy user at the top of the user list
-- and displays the time.
-- It is updates every minute
current = os.date("%H.%M")
min = 1000*60
---------------------------------------------------
function Main()
frmHub:RegBot("---" ..current .."---", 1, "Local Time", "")
SetTimer(min)
StartTimer()
end
--------------------------------------------------------
function OnTimer()
frmHub:UnregBot("---" ..current .."---")
time = os.date("%H.%M")
current = time
frmHub:RegBot("---" ..current .."---", 1, "Local Time", "")
end
--------------------------------------------------------
function OnExit()
frmHub:UnregBot("---" ..current .."---")
end
Thx a bunch. I mean respect for ya \m/.
Your Welcome ;)
That's a sorted script m8 just what i was looking for-keep up the good work m8