NightDev Community Forums

Staggered timers

Hi, I am looking to use the timer function to schedule multiple comments all at 60min intervals, but staggered at every 10 mins. Is this possible?

Yes,
Ok so first go to this link:
https://twitch.center/customapi/quote/generate
And generate your tokens.
They come inbetween token= and &data
The public token is 8 digits and private token is 16 digits.
Then put the tokens in the respective places in the command.
Do not share the private token with anyone.

Ok so here are the commands

The timer:

$(eval a=`$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=1)`.split(`,`);T=`$(twitch $(channel) "{{uptimeLength}}")`.replace(/\s+/g,`:`);x=0;for(i=0;i<a.length;i++){b=a[i].split(` `);if(b[0]==`channel:is:not:live`){if(T!=`channel:is:not:live`){x=1}else{x=0}}else{x++};n=x%6;if(n==1){R=`One`};if(n==2){R=`Two`};if(n==3){R=`Three`};if(n==4){R=`Four`};if(n==5){R=`Five`};if(n==0){R==`Six`};`,`+T+` `+R)

Set interval to 10 and chat lines to 2
Fill in your token
Set alias to _timer or whatever you want the second part to be called

Second part of command call it _timer or something similar:

$(eval a=`$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(query))`;M=`$(2)`;M==`One`?`MESSAGE_ONE`:M==`Two`?`MESSAGE_TWO`:M==`Three`?`MESSAGE_THREE`:M==`Four`?`MESSAGE_FOUR`:M==`Five`?`MESSAGE_FIVE`:M==`Six`?`MESSAGE_SIX`:` `)

Set userlevel to moderator
Add through the dashboard so no one can get your private token
fill in your token and messages

If the messages don’t fit in the limit for the command tell me and I can tell you how to make a pastebin for it.

1 Like

Thank you very much for your reply, is there a way to do it on YouTube?

As long as you have nightbot set up on youtube I would assume this would work.