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.