Need help with my !uptime command

I made an !uptime command, and it works perfectly fine, but I would like to solve this:

1:22 Aery08: !uptime
1:22 Nightbot: Aery has been up for channel is not live

As you guys can see, if I’m not live the bot says “Aery has been up for channel is not live”, I think that it just is weird, I would like it to say something like “Aery isn’t live at the moment”
Thanks for the help, I appreciate it a ton <3

Copy & paste into chat

!addcom -cd=5 !uptime $(eval a=`$(twitch $(channel) "{{uptimeLength}}")`;a!=`channel is not live`?`Aery has been up for `+a:`Aery isn't live at the moment`)
1 Like

Bro thanks, I love you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.