Is there a way to create a bot on Discourse that would reply to my commands, in a similar way that I have built many of my Discord bots?
Basically, I know that there are various plugins that I can install, but in my mind, it would be far easier for me to maintain if I could just have a bot that could listen to the text in a comment rather than trying to install plugins that are prone to mess up with things and especially if the maintainer decides that they don’t want to maintain the plugin anymore.
As @merefield alludes to though, it is possible to create plugins that do not override core functionality, instead being notified for events and interacting with core APIs, which are easier to maintain and less likely to have unwanted side effects.
Going the webhook/API route also requires setting up a stack to run your bot and ensuring that it is always available while Discourse is available, both of which come for free with a plugin loaded into Discourse.
Writing a plugin would require learning Ruby and gaining some familiarity with Discourse classes but if you’re already capable of writing and maintaining a bot in something else, I’m sure you could learn what’s needed pretty quickly.
is it possible to have a bot in a group chat ?
I see there is incoming webhook that could deliver message to a groupchat,
but seems there is no way having a bot account that listens to the chat messages, then do something accordingly… ?
with a plugin, it could add an event hander/listener for group chat message.
I have a rest endpoint server that handles the webhook events, that works nicely for adding a bot to the post/comment.
but unfortunately, there is no events fired for group chat message, it does not fly that way…