SETUP
There's 3 fields in the Settings you need to fill out before you can use this. First of all, you need to know what Twitch account you want to connect to chat with. This can be your main account, but also a secondary "bot" account.
- Enter the name of that account in the "Nickname" field
- Enter the list of channels you want to join (can be multiple using
,
) in the "Channel" field
- Go to https://twitchapps.com/tmi/ and login with the account you want to use, and copypaste the token you will get into the "OAuth Token" field. (Include the
oauth:
part!) - TREAT THIS TOKEN LIKE YOUR TWITCH PASSWORD!
Reload the plugin and you're set! 👏
Description
This plugin offers a system for other plugins to get new messages from the Twitch IRC API. Using the TLS socket feature of Openplanet, this plugin supports:
- setting up Twitch IRC API connection and managing it (obviously)
- multiple stream chats on one connection
- filtering message types and making it able for plugins to only subscribe to some of them (using shared classes / enums)
- sending messages / whispers to twitch chats
- and more useful stuff I probably forgot mentioning!
You can use the Twitch Chat Inspector to see what is getting sent out when you use this base. There's also the Twitch Chat Viewer as some sort of tech-demo :D
Documentation
You should find all you need in Exports.as as that defines all the functions you will use. In Structures.as, you can find all the custom structures that are used.
Missing something? Want to leave feedback? Feel free to message me on Discord or Twitter or idk, DMs are open :)
Enjoy!