Useful Custom APIs

Can some one make a command where you say “Hey NightBot” and “Hello NightBot” NightBot Replies?

I do believe this is what you are looking for.

Look above at comment number 19 / 205 June 2015 The actual quote string is there.

How could a score system be implemented via custom APIs? I’m trying to use that as a semi-automated way to track user-by-user activity on the channel, which would aid in managing regulars efficiently.

Hey, i was watching a stream and they had a quickscope command that randomly picked someone. It was [touser] 360 quickscoped [customapi] ([count] people have been quickscoped) and i was wandering what api was used to make this command possible and if you could leave an example thank you.

That would be this customapi https://apis.rtainc.co/twitchbot/randomviewer?user=USER&capitalization=CAPS

so the command you want is:

!commands add !quickscope $(touser) 360 quickscoped $(urlfetch https://apis.rtainc.co/twitchbot/randomviewer?user=$(channel)&capitalization=CAPS) ($(count) people have been quickscoped)

it didnt work. I did that !commands add !quickscope $(touser) 360 quickscoped $(urlfetch https://apis.rtainc.co/twitchbot/randomviewer?user= $(Msblueshines)&capitalization=CAPS) ($(count) people have been quickscoped). That showed ohsosymbolic 360 quickscoped [Response must be less than 400 characters] (1 people have been quickscoped).

You replaced the channel variable. I made the message so you could copy paste it. Either remove your command and copy paste or remove the $ and () around $(Msblueshines)

i would like nightbot to link the commands for my channel every 15 mins how would i do that?? example please.

Make a timer with the text that !commands has and set it to run every 15 minutes with the chat lines set to whatever amount you want

im trying to add choices but the response i get is choices and not what i asked to choose. an i doing it wrong?

also is it possible to make a ratewaifu api?

as in i would type !choose splatoon, pokemon but it would respond with choice instead of what was asked to choose.

Have you configured the url at all? The url by default will only return CHOICES if you don’t configure it. If you want people to be able to use the command with their own choices (not predefined) then just use this command:

!commands add !choose $(urlfetch https://api.rtainc.co/twitch/random?choices=$(querystring))

@rtainc This is live and effecting a majority of your services: https://discuss.dev.twitch.tv/t/client-id-requirement-faqs/6108

My apologizes for not seeing this sooner, I have been very busy. All api.rtainc.co services are updated. If there’s anybody still using apis.rtainc.co custom APIs please update or if there’s no equivalent one available let me know so I can update it.

@rtainc I’m having issues with getting the follower’s time API to work. Every time I or a follower tries the command, I get the response “USER is not following”. Any help would be greatly appreciated.

1 Like

Hi!

I am quite new to making custom commands but have some programming experience so I’ll try my best to understand and follow. I tried going through the entire thread to check if there was anything similar to my query. Basically, I stream Pokemon and wanted to create a !capture command where the result would be a 50/50 success/failure and would return something like ‘User’ caught (or failed to catch) ‘Pokemon name’ with a ‘Type of Pokeball’.

I am trying to use this for the Ball part - https://api.rtainc.co/twitch/random?choices=Poké%20Ball!,Great%20Ball!,Ultra%20Ball!,Premier%20Ball,Repeat%20Ball,Timer%20Ball,Nest%20Ball,Net%20Ball,Dive%20Ball,Luxury%20Ball,Heal%20Ball,Quick%20Ball,Dusk%20Ball

For the list of Pokemon, I pasted a list of all of them onto pastebin, here’s the raw link - http://pastebin.com/raw/Qc0ZEKUE

So I want it to select a random Pokemon from that list and make it so there’s a 50% chance of succeeding or failing at the capture.

Sorry for the long and specific request. Hope someone can point me in the right direction! Thank you!

Can you create one that will spit out a custom list? there is no formatting in chat and commands and I would like to create a list of mods and be able to add to it

instead of USER put $(touser)