Hello i am fairly new to mIRC and it's scripting language, i have only been doing this for a day but have been working on making a chat bot for my live stream, i have alot of it built and working already and now understand the language a little bit.

I want am posting here because i want to make a script so that if someone types !uptime in my stream, it shows them how long i have been streaming for.

So for example something like this.

on *:TEXT:!uptime:#: {
if $nick {
msg $chan the stream has currently been up for [[ .timer however long the stream has been live for.. ]]
}
}

Now i don't really know how to make a timer thru mIRC script editor.
And i dont know if there is a way that it can automaticly recognize when i go live, or if ill have to type a command like !uptimestart too start the timer so if someone types !uptime it tells them the time, if thats the case i don't mind, i hope i was able too give enough details for someone to help me ^_^