Timers using multiple commands?

Is there a way to make a timer every 30 mins use a command from a list that I give it?
I’m trying to make a shoutout timer that shoutouts different peoplestyles commands.

@Jakyl I’m assuming you have a shoutout command that takes your input and outputs it somewhere in the shoutout message, something like:

!shoutout [username]

So when you make the timer, put your shoutout command name in the Alias field and the username you want to shoutout in the Message field.

HI, what I have is multiple custom commands for each individual e.g

!g2g - go and visit g2g @www.blah blah blah. Com

What I want is for 1 timer to randomly select one of these custom commands and post it every 30 mins. Is this possible?

It’s not possible to make a timer choose from multiple commands, but what you can do is create a Pastebin file (at https://pastebin.com) that contains all of your commands’ responses. Look at one of my pastes I use for a trivia command to get an idea of how to format your quote list. What’s important is that each individual response is bound by quotation marks ("") and separated by commas. Once you’ve created your paste, copy and paste this into your chat. It will make a command called !randomso:

!addcom -cd=5 !randomso $(eval a=[$(urlfetch json yourPastebinRawLink)];a[Math.floor(Math.random()*a.length)])

Replace yourPastebinRawLink with the link to your pastebin file (make sure it’s the raw link, it should look like https://pastebin.com/raw/whatever)

Now create a new timer at https://beta.nightbot.tv/timers:
Click Add
In the Message field type $(query)
In the Alias field type !randomso
Set Interval to 30 minutes
Set Chat Lines to whatever you want.
Click Submit

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