[request] command for random link


#1

Hello, i need a command that gives the person who enter the command a random link from one of my link


#2

You can use this Custom API to accomplish this.


#3

And where should i put this code? In the “command” area? Or i need to create a app? I am new in Api…


#4

You can create a nightbot cmd with the URLFetch function
$(urlfetch https://api.rtainc.co/twitch/random?choices=Your1stURL,Your2ndURL,Your3rdURL)


#5

Thank u so much! But Nightbot is very unresponsive… Why?


#6

In what way is Nightbot unresponsive? If you’re re-using the same command, there is a cooldown to prevent abuse.


#7

I give him a command and after 6-7 seconds give the answer


#8

If you use Twitch, disable chat delay to fix that in your Twitch channel settings. If you use YouTube, that’s a limitation of their chat system.


#9

Thank u very much… I love what u do… :slight_smile:


#10

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