-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple bots support #327
Labels
Comments
Is this still on the roadmap? :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Nostrum's current design makes it very hard to have multiple bots running in the same BEAM runtime.
Solution
I'm going to take this problem into account with my refactor of #317, so no further architectural changes will be necessary. API changes however are unavoidable for this.
The simplest solution I can think of is a use macro that reimplements
Nostrum.API
on a user module, with the same API thatNostrum.API
has currently. ThenNostrum.API.Internal
can distinguish between bots based on constants generated by the use macro.To the end user, the change then becomes this:
A simple swap of which module is used.
The text was updated successfully, but these errors were encountered: