Useful Custom APIs

The problem is there is no good resource for these statistics, since BO3 doesnt have an open API. If you know a place/website where to pull stats from then a customapi would be possible.

I wondered if anyone could make or knew of a custom api that lets me check if user has their steam linked to twitch for giveaways. Currently I use the twitch API itself (https://api.twitch.tv/api/channels/usernamehere) but it spits out a bunch of data thats not useful also so we cant have nightbot do it. Preferably I would like to see if they are following and if they are linked from one command, but just linked is good enough if it already exsists. Thanks

@rtainc Is there a way to display years as well? I donā€™t really care about seconds to be honest.

Right now the results are:

Elproempie has been following since: 3 months, 3 weeks, 1 day, 21 hours, 31 minutes, 20 seconds

While iā€™ve actually been following the channel for over 2 years.

It will display years with &units=7 instead of 6 or you can just remove the &units=6 all together.

Can you transalte this api on spanish? :smiley:

Sorry but no. Doesnā€™t work when trying &units=7 or removing it all together.

Tested multiple stuff like units=1 or 3 or 5 but keeps giving the same.

After re-looking at it, it seems that only the 2 largest values get displayed by default without the &units=. So if you were following for for 2 years it would say x years, x months. If your not getting years itā€™s because you unfollowed the channel at some point and the count reset.

Itā€™s working fine when handling years.
https://api.rtainc.co/twitch/followers/length?channel=default_player5&name=aaron128l

According to twitchtools i am following the channel in particular for 2 years, 4 months.

Odd, But thanks for the effort! Appreciate it!

Heyo,
I was wondering if there was any way to make a command that will put an overlay on the twitch stream just as an image. And for specifics, I just want a find a command that will put a simple image that I can link as a brb screen for my twitch streamer and then I can take it down with either the same command or a different one. id rather it not have sound in it either. please get to me soon with a response.

 TY :3

While there are ways to do that. That requires far more than a customapiā€¦ So now that isnā€™t possible for what Nighbot is made for.

Oh, well thank you for that information!
TY ~Ace Is Out.

Is there a way to make the https://apis.rtainc.co/twitchbot/choose?choices=Choice+1,Choice+2,Choice+3 into a more useable chat form with change able variables. Like !choise a,b,c did give that customapi with https://apis.rtainc.co/twitchbot/choose?choices=a, b, c. Meaning a,b,c can be replaced by anything without having to edit the customapi every time.

No it isnā€™t the intent to make them changeable without a command change. However, you can use $(querystring) to add values for that one time using commas to distinguish each choice.

Example:

!commands add !choice $(customapi https://apis.rtainc.co/twitchbot/choose?choices=$(querystring))

!choice Go Right, Go Left
or
!choice Up,Down,Left,Right

1 Like

Thank you, thatā€™s preciesly what I ment.

@rtainc I see you know a lot about nightbot and programing, Iā€™m a mod on one stream, and wanted to see if itā€™s possible to do something like a quiz command. Would add some quiz questions and answers, and it tracks exact answer or mods could check the answers and trigger it to give points to person that answers correctly.

This would be fairly complex to do and frankly wouldnā€™t work out too well. The main reason is that Nightbot has a minimum command cooldown of 5 seconds. So entering the answer as a $(touser) would result in most of the entries skipped.

If you really wanted to get crafty you could create a system that creates a Nightbot command with the winning word, however it could only be 1 word as multi-spaced command names are not supported. It would also require a secret way to add an answer in an automated way. All and all very unlikely for something like this.

oh ok, thank you for fast reply, just trying to improve this streamer chat, with fun ways so chat gets busy and entertained even more.

hey can i do like !following opatsut or !following uliman and then it show how long that person has been following?

This is from the direct post.

1 Like

@rtainc, Would it be possible to create an API that shows how long the streamer has been playing the current game?

i,e:
elproempie: !playtime
ChannelBot: Streamer has been playing Arma3 for: 1 Hours, 2 Minutes, 3 Seconds

Thanks in advance!

1 Like