Configure Nightbot with the !uptime command

The use of Bots is increasingly common on streaming platforms, such as the Twitch platform and YouTube, for example. However, have you, as a content producer, ever needed to know how much time you’ve been broadcasting in the chat itself so that your viewers can also see it? With that in mind, I decided to create this quick tutorial teaching how to create the !uptime command in Nightbot for the Twitch and YouTube channels. Check it out in full!

Configure Nightbot with the !uptime command

The process is relatively simple and you have two ways to configure Nightbot. The first is by accessing the bot’s Dashboard directly and accessing the “Commands” area and creating a new command with the string variable: !uptime and the command text for:

The channel has been live since: $(twitch CHANNELNAME HERE "{{uptimeLength}}")

If you prefer, the second way is using the broadcast chat itself, where you, the content producer or a moderator, can create the following command directly in the chat:

!addcom !uptime The channel has been live since: $(twitch CHANNELNAME "{{uptimeLength}}")

Important Notice: Remember to replace CHANNELNAME with the name of your Twitch channel (you can see this information in the URL).