This is a VERY simple proof of concept on how you could integrate Pogly Standalone into your own chat bot.
The point of this project is to push you in the right direction if you're interested in doing something like this. This project will most likely not be maintained and is not guaranteed to function properly.
Pogly Standalone frontend is not currently designed with Twitch Chat bot integration in mind so... keep that in mind.
pogly_twitch_bot_poc.mp4
- How to connect to a Pogly module
- How to authenticate in a Pogly Module
- Example code to trigger an event within the module
- A simple way to save SpacetimeDB token / Pogly identity
First fill .env
variables
npm install
npm run start_bot
Due to this being just a proof of concept, there aren't many reducers and table references in this project out of the box. Since interacting with the overlay via text is significantly different compared to the React frontend, you most likely have to write your own SpacetimeDB reducers for your specific use cases.
When developing, you need to first build with tsc
then ts-add-js-extension --dir=dist
to fix all the importing related issues. Everything you need to do is bundled up in npm run start_bot
so use that instead.
For any questions / assistance for integrating Pogly into your Twitch Chat bot, feel free to join our Discord.