Hello, I’m wondering if it’s possible, or a discord bot already exists that you can setup to automatically link to new threads that pops up on a discourse forum. Preferably so that it will only link threads from a specific category
إعجاب واحد (1)
This gets you very close:
Purpose of this plugin
This plugin does several things:
Allows you to power a Discord bot using your Discourse server to do stuff to link the two systems. Fork this repo and expand it with simple Ruby to create all kinds of bot functionality.
Existing functionality to serve as examples and useful utility:
Provides some two-way auto posting of content that meet some criteria.
Command to copy messages ad hoc to Discourse
Command to sync group membership to role membership of your Discor…
Specifically this which I added recently which may do exactly as you require already.
OK I’ve developed the plugin a little further now and have POC for two way communication working:
Here are the new settings
[image]
You can designate an Announcements Channel on Discord in the plugin settings.
You can now type into the assigned Discord Announcements Channel and this will post your message to your assigned Discourse Topic in the plugin settings
You can set up a list of Categories in Discourse to post to the Announcements channel on your Discord if someone Posts there o…
Fork and expand as required.
إعجابَين (2)
Aha, that seems a bit overly complex, I don’t want to sync members between the discourse and discord server. Just simply a bot that “listens” to certain categories, and links any new thread in that category to a discord channel
إعجاب واحد (1)
The syncing is completely optional. The syncing is initiated by bot command at present. If you don’t want it, you don’t run the command.
Thats exactly what it does. Did you go to the second link?
Feel free to try coding a simpler solution, but I suspect your requirement is met.
إعجاب واحد (1)
Yuun
(Sam)
17 مارس 2021، 2:35م
5
Depending on what you need, the official chatroom integration plugin may work for you as well:
I had it configured to do what you’re asking for at one point, I remember it being pretty straightforward.
إعجاب واحد (1)