Hello, there guys, I've been searching around the forums on the internet and some !uptime commands they don't seem to work or just outdated. I'm looking for a working !uptime command that shows how long I have or/ the person has been following the stream for? The code I've got now when I type "!uptime" it says "username is not online" I was wondering if you could find the working code it will show in the chat when you type !uptime it will say the correct time as it shows for the StreamElements bot. Basically when you type !uptime the StreamElements it displays the time even though if the streamer is online or offline. The code I'm using now;

Quote
ON *:TEXT:!uptime*:#tehrani: {
VAR %stream $IIF($2,$2,$remove(#,$chr(35)))
jsonopen -ud uptime https://api.twitch.tv/kraken/streams/ $+ %stream
IF ($JSONError) MSG $chan Error.
ELSEIF ($regex($JSON(uptime, stream, created_at), /^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/)) MSG $chan %stream has been streaming for $duration($calc($ctime - ($ctime($gettok(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec, $regml(2), 32) $regml(3) $regml(1) $regml(4) $+ : $+ $regml(5) $+ : $+ $regml(6)) - 18000)),2) $+ .
ELSE MSG $chan %stream is not online. LuvOops
}