Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Uptime(msg,usr,chan)
- local chan = Channel():sub(2):lower();
- if msg~=nil and msg~= "" then
- chan = msg;
- end
- local ok,bad = MOD.GetStream(chan);
- if ok then
- local secs = MOD.TimestampToSec(ok.started);
- print(ok.name.." has been online for "..MOD.SecondToSpan(os.time()-secs).." status: "..ok.status);
- else
- print(chan.." is offline ("..tostring(bad)..")");
- end
- end
- return Uptime;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement