!uptime Status?

Is there a way to do a if/else check where when people types !uptime it displays information based on the status of channel?
Like if my channel is offline, typing !uptime would display
is currently offline.

but if I’m online and live
has been streaming for <hours/minutes/seconds>

Or is there no option available for this?

Oh nevermind, I’m silly, I was using the wrong command