Open control-o opened 6 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.
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
term
and bot
commands )
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.