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
Make sure your using the CustomAPI correctly:
$(customapi https://nightdev.com/hosted/uptime.php?channel=CHANNELNAME)
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
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 +
)
That example will choose from the choices, Choice 1
, Choice 2
, and Choice 3
. Just separate the choices by commas and replace spaces with +
.
Is there a way to decrease the cooldown time for using commands?
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.
A custom API for the total moderator count in a set channel.
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
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.
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)).”
That command you’ve posted works perfectly.
Make sure you have the right $(touser) and $(user) in the right places.
It worked, thank you so much
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.
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?
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.
Done
You can choose from the BrainyQuote categories.
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.
This is awesome thank you so much!
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?