Hello,
I am planning on making an open source Flarum Discord bot, with the start functionality being that a user can enter a search term and it pull results.
I'll premise with I am a noob, so this will be a lot of learning and trial/error to get to a working project. But seems like a fun challenge.
Structure
It's my understanding that the best method of approach for this would be to create a plugin that has a Listen event for a trigger coming from the Discord bot.
When the event is triggered, some sort of output is then returned to the bot. Authentication of some kind would also be needed (I imagine).
Below is a crude method of how that might look:

If more knowledgable users out there have idea's of shortcuts or ways to trim this down for a better design let me know.