Useful Custom APIs

I’m trying to make commands on a friends channel and whenever I make a command with one of the customapi’s Nightbot responds with the link instead of in chat. How do I fix this problem since I assume it can be fixed since I had the same problem with !uptime before my friend fixed it. Any help would be greatly appreciated :smiley:

1 Like

Make sure your using the CustomAPI correctly:

$(customapi https://nightdev.com/hosted/uptime.php?channel=CHANNELNAME)
1 Like

Do you have an API where a “nightbot” keyword command can create random and multiple responses from Nightbot?
I know i have seen it on several twitch channels. looking for the API

1 Like

Use this for reference, as this worked for me:

!addcom !8ball $(customapi http://apis.rtainc.co/twitchbot/8ball)

If I understand you correctly, you’re looking for the choose API (I forgot to add this one) -

https://apis.rtainc.co/twitchbot/choose?choices=Choice+1,Choice+2,Choice+3

(Keep in mind that in a URL, spaces should be replaced with +)

1 Like

That example will choose from the choices, Choice 1, Choice 2, and Choice 3. Just separate the choices by commas and replace spaces with +.

2 Likes

Is there a way to decrease the cooldown time for using commands?

1 Like

That’s on Nightbot’s end, not mine. As far as I know, there’s two cooldowns. One cooldown for using the same command (which you can modify at http://nightbot.tv) and another, non-modifiable cooldown for identical messages sent to a channel.

1 Like

A custom API for the total moderator count in a set channel. :smiley:

1 Like

I have a question about the API:

https://apis.rtainc.co/twitchbot/following?channel=CHANNEL&user=USER

If I wanna make it so that I can target other channels, and see how long I’ve been following them, what do I change the “CHANNEL” for then?
I’ve been doing like this:

$(user) has been following channel $(touser) for $(customapi https://apis.rtainc.co/twitchbot/following?channel=CHANNEL&user=$(user))

But that doesn’t seem to be working :confused:

1 Like

You want to use a touser to select the channel.

$(user) has been following channel $(touser) for $(customapi https://apis.rtainc.co/twitchbot/following?channel=$(touser)&user=$(user)).

Good luck.

1 Like

Hey,

When I type like you wrote, this comes:
“Nightbot: Artiiz has been following channel Sodapoppin for Sodapoppin is not following.”

I’ve done like this:
“!addcom !followage $(user) has been following channel $(touser) for $(customapi https://apis.rtainc.co/twitchbot/following?channel=$(touser)&user=$(user)).”

1 Like

That command you’ve posted works perfectly.
Make sure you have the right $(touser) and $(user) in the right places.

1 Like

It worked, thank you so much :smile:

1 Like

This isn’t exposed through the Twitch API. The only way I could do this is by having a bot join a Twitch chat, send /mods to the chat, wait for a response, then relay the response on the web server. Needless to say, it would be difficult and exploitable. Sorry.

1 Like

Thanks for these custom APIs, was wondering if there could be one set up that connects to a word/quote of the day website to bring back the actual word/quote, not just a website link?

1 Like

Depends on the site. Just tell me what site you’re talking about and I’ll see if I can make an API for it.

1 Like

I was thinking of BrainyQuotes quote of the day: http://www.brainyquote.com. Thanks!

1 Like

Done :smile:
You can choose from the BrainyQuote categories.

rtainc.co
rtainc.co
rtainc.co
rtainc.co
rtainc.co

If you’re wondering, I’m changing the url from apis.rtainc.co/twitchbot/ to api.rtainc.co/twitch/. The previous url will work for the foreseeable future, but updating would be appreciated.

2 Likes

This is awesome thank you so much!

2 Likes

Following up on the quote command - I put in the url in the customapi command and I noticed that it puts “
” at the end of the quote when I enter the command in chat?

1 Like