Twitch Base

A plugin by Nsgr(Trusted developer)

Twitch Base
Downloads 1,532
Updated 17 days ago
Released 5 years ago
Identifier TwitchBase
Numeric ID 93
Min. Openplanet 1.29.6
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.2 - 17 days ago

  • Add "m_receivedAt" member, denoting the game time when the a given message was received via Time::Now
  • Always make use of Content-Length header in HTTP responses

2.1.8 - 30 days ago

  • Implement HTTP request streaming
  • Fix timestamp and username member assignment
  • Updated for API changes from 1.29.6
  • Fix compilation warnings

2.1.3 - 9 months ago

  • Fix crash when removing channel at list index 0

View all changelogs