breqdev/flask-discord-interactions

Support for multiple bots on one Flask server?

breqdev opened this issue · 1 comments

It should be possible to run more than one bot on the same Flask app, by giving each bot its own interactions route/URL.

This library should document this use case. Also, we need to verify if this actually works -- can the library handle multiple separate DiscordInteractions instances for one Flask app?

Decoupling the DiscordInteractions object from the Flask app would be a major breaking change. It seems like the proper way to run multiple apps in one WSGI environment would be to use Application Dispatching.

While I'd like to support this use case, the way that Flask handles configuration would make it difficult to do well.