Timer that shows who is Hosting my Stream?

Asked Aug 6, 2020·3 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

So far I've moved all my commands and timers from Streamlabs Chatbot and Streamelements to Nightbot but 1.

On Chatbot I can have a timer go off every few minutes that shows all the channels that are hosting my stream in the given moment it puts the timed message in chat and I would really like it if I could do the same with Nightbot.

Could someone please give me the appropriate variables/scrip/code/whatever to do the same via Nightbot please?
I basically want it to appear in the chat like this: "/me Special thanks to everyone hosting the stream which includes: [channel name], [channel name], etc..."

3 replies

You can use something like:

Special thanks to everyone hosting the stream: $(eval const {hosts} = $(urlfetch json https://tmi.twitch.tv/hosts?include_logins=1&target=$(channelid)); hosts.map(({host_display_name}) => host_display_name).splice(0, 10).join(', ') || 'none')

Is there anyway this could be used as a command ?

night said:
Special thanks to everyone hosting the stream: $(eval const {hosts} = $(urlfetch json https://tmi.twitch.tv/hosts?include_logins=1&target=$(channelid)); hosts.map(({host_display_name}) => host_display_name).splice(0, 10).join(', ') || 'none')

Yes, I tested it out just copy and past what’s above into the message field of the command 😛 can be called whatever.