A Simple Twitch Bot
A downloadable tool for Windows
This is but a simple chatbot that was made in Game Maker Studio. It will log into Twitch using an oauth key you create, read your channel's chat, and if anyone starts a chat with an exclamation point, it will play a sound if one is found to match the text following it. It can also check a list of emotes and play sounds if those match.
You can match a sound with a json file to further customize how the sound is played, such as lowering the volume of the sound, adding restrictions on how long before it can be played again, limiting it to specific people, and more!
CAUTION: OGG files only for sounds.
!laugh will search your designated directory for a laugh.ogg and laugh.json (not required), for instance. This means that in order to add a new sound to your database, all you have to do is put the sound in the right folder, the program will find it immediately. No sounds are loaded permanently, all are searched for and loaded up on command. The goal was for a streamlined sound adding process with no nonsense. Put file in folder, file now works.
The included readme goes into detail about how the settings work, and how to customize the sounds via json files for other features (such as play a random sound from a folder)
Future Plans: Displaying images on a chromakeyed background so that you can add the bot to your OBS overlay and have the images pop up via chat command!
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
Odd request:
CyberTrucker mentioned he used this, and I have my own implementation of Twitch APIs (Which is just a complete mess because it's a re-write of an older script on Github.)
As someone who uses GameMaker Studio 2.0+ for my APIs and streams as well, I was wondering if I could look at your source code?
The reason is that I want to try and implement an animation system so I can swap out my current stream animations for something more modular and it might make more sense to just combine forces rather than have 2 apps.
I understand if this is a "No! Are you batshit?" because I know how self-conscious I am of my code but your implementation is probably a lot cleaner since it doesn't consider random animations. If this interests you, reach out to me at batshitgrotto@gmail.com.
PS: I hope you get that map.
-TheGrotto1
Unfortunately, due to a hard drive crash, I lost the source code myself! I'm betting your rewrite was based on the same code mine was, haha. Because of a bunch of things (including the token generator now no longer being a thing), I was going to start over from basically scratch anyway. I had actually implemented graphics into the build that never made it to itch! I am sorry I couldn't share it.
Ah! Sorry to hear! Anyways thank you very much for the reply!
I'll see about cleaning fixing my own implementation to make it safe for others to use. I just hope there isn't a lot of hoops to jump through for others to use it.
An absolute lifesaver, especially if you want to juggle a very large soundboard.
it can read chats, but can it read maps?
This is amazing. Almost as amazing as your map.
thanks Dana!
You're welcome! :)
This is slick, thanks!
You're very welcome! I hope it turns out to be useful for people who don't want a big deal out of signing up for a website and stuff.