mostlymaxi / twitch-interactive-things

random rust projects to make my twitch stream more interactive!
https://twitch.tv/mostlymaxi
MIT License
3 stars 6 forks source link

Feature Request: Add Franz Producers to Bot API #58

Open control-o opened 6 days ago

control-o commented 6 days ago

The current bot API lacks support for Franz producers. Adding producers to the bot API would help make for interesting commands, giving them the ability to communicate with points-term, for example. Let me know if there's interest, and I'd be glad to send a PR.

control-o commented 4 days ago

Thought a bit more about the implementation and I think adding producers directly to the bot is not a great idea, either the term needs to send the output of the command back to the bot or the term directly send the chat messages, making it a pain to manage what the code is doing in the two places. image

To avoid the round trip and make the code more manageable what could be done it to have one shared library for commands and sending chat messages that the bot and points-term both use image