Twitch Base

A plugin by Nsgr(Trusted developer)

Twitch Base
Downloads 1,065
Updated 2 months ago
Released 4 years ago
Created 4 years ago
Numeric ID 93
Min. Openplanet 1.26.0
Signed
Game Trackmania

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
  • 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 other platforms, DMs are open :)

Enjoy!

Changelog

2.1.0 - 2 months ago

  • Switched from TMI Token Generator to using own Twitch Application mechanism
  • Easier settings UI

2.0.2 - 3 years ago

  • Removed "[Twitch]" prefix as the context is now shown in the log
  • Fixed abandoning socket process due to timeout (previously, the connection was held anyway but since the API always responded this never resulted in a failed connection in the first place)
  • Now telling the user to view the setup guide on the download page if nothing was done yet

View all changelogs