Useful Custom APIs

Hey,

I’m wondering if there’s any chance of making a API on checking the logs of a specific viewer?
I saw it in someones chat for couple days ago, and I thought it would be awesome for mods to check logs for unban people.

1 Like

I’ll have to look into that as I’m not getting the issue on the site itself. I’m in a hotel with useless internet so unfortunately that may take a day or two. I believe there’s a sneaky <br> that doesn’t show up in the browser (because it’s code for a line break.)

I’m sorry, but I don’t quite understand what you mean by “logs” - are these the ban logs of the channel?

1 Like

Can you make a work around so I can use ,'s in my choices link.

http://apis.rtainc.co/twitchbot/choose?choices=CHOICES

Currently it will view %2C as a comma. Which prevents any commas from being used. Thanks.

1 Like

On the new URL:

https://api.rtainc.co/twitch/random?choices=a,b,c

Putting ,, will result in a single comma in the choice.

1 Like

@night @Izl
I assume my post hit the max time length for editing it – is there any way to remove this limit? This kind of makes the post useless and I’m sure no one wants to look through all of these posts for any updates.

Type up what you want the post to be and PM me it. I will update the first post.

1 Like

Alright, thanks. I’ll try and update it less frequently to not bug you. :wink:

1 Like

I’m sorry, but I don’t quite understand what you mean by “logs” - are these the ban logs of the channel?

I mean like a log for what a person has been saying while being in the chat.
An example that exists in Sodapoppin chat:
http://overrustlelogs.net/Sodapoppin%20chatlog/August%202015/userlogs/artiiz.txt

1 Like

There’s no way for me to do that on a large scale, though if you already have a channel on OverrustleLogs, I can make a custom API for them. I’d recommend contacting the OL guys - Amazon.com. Spend less. Smile more.

1 Like

Hey @rtainc,

First, thank you for putting these together and I really appreciate your continued work towards making these APIs user friendly. I’ve been utilizing a few and they have been flawless. Unfortunately, as of two nights ago, when attempting the followage command, I am getting a server error:

Not Found

The requested URL /twitchbot/following was not found on this server.

This is from the API call:

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

Used to work great and was brought to my attention by a streamer I mod for that the cmd broke, I checked on mine and then attempted to pull the log directly and continue to get the 404. Any help would be great :smile: Thank you!!!

1 Like

I have this same problem. Tried to use it for the first time today and received this when my friend tried it

Blurredouthaze has been loyal for Remote Server Returned Code 404

1 Like

@white646 @jazen_12
Sorry about that, there was a mixup when transferring files. I’ve fixed the old URL for backwards compatibility, but for futureproof-ness, I’d suggest switching to the new one.

https://api.rtainc.co/twitch/following-since?channel=CHANNEL&user=USER
2 Likes

Thank you very much @rtainc

Tested the new API URL and it works great, I have updated my commands.

1 Like

Would it be possible for you to make a !roulette api? I want it to have a random chance of going “Bang, you’re dead” and silencing that person, Or going “You live… This time.”

Sorry If this is a bit too much to ask.

1 Like

You could use the choice api:

https://api.rtainc.co/twitch/random?choices=a,b,c

Filling in all of the responses you want. However you can execute commands through Nightbot so there would be no way to make someone “dead”.

1 Like

Hey, love this and I use a lot of your commands!

I was hoping that i could find some fun ones like the 8ball command. I have seen !kill, [user] has killed [random viewer] by [random death], and !heist is really popular, i don’t know how to explain this one very well. Anyway, i guess i’m asking if you could possibly make similar ones or even more fun ones to use with nightbot. One i was really interested in, but it broke, was using nightbot like siri. Nightbot would talk as long as you said “nightbot” [insert question or comment]. It was a pretty cool idea, in my opinion.

1 Like

Sorry, but Nightbot cannot do that, only other bots. Most likely it’s a security reason.

I can probably make a randomized !kill command fairly soon. As for heists, if you mean with currency/points, that’s not a feature of Nightbot. For a Siri command, that’s a very complicated thing to do (correctly) but I’ll see what I can do here soon.

1 Like

Thanks! I’m so glad you are so awesome :slight_smile:

1 Like

Wouldn’t it be the same as just adjusting the 8ball sequence. instead of the 3 it would be 70% alive and 30% dead on return. Just thinking out loud.

1 Like

By roulette I thought you meant it would purge/timeout people who “died”, like Moobot. If not, you could just use random?choices=alive,alive,dead for 66% alive, 33% dead.

1 Like