Discord Multiverse
Service module for managing an unlimited number of discord servers from a single auth instance. It can run side by side with the core auth discord service, or completely standalone.
Most of the code is borrowed from Alliance Auth's core Discord Service Module[link] and re-purposed to be guild agnostic.
Active Devs:
- THIS APPLICATION IS NOT PRODUCTION READY
MID PRIO:
- TODO: Check the performance with massive servers/counts...
- TODO: ensure no cache conflicts
- TODO: Instructions and documentation
- TODO: Maybe custom client/secrets at a server level?
HIGH PRIO!
- TODO: Check AuthBot to see what it does.
- TODO: Check/update all members on change of server model.
Installation
- pip install
package
- Add
'aadiscordmultiverse',
to yourINSTALLED_APPS
in your projectslocal.py
- Run migrations, collectstatic and restart auth.
- Setup your permissions as documented below
Access Control and Server Permissions
- First and foremost to access ANY server a user must have this permission;
aadiscordmultiverse | discord managed server | Can access the Discord Multiverse services
- Access control to each server is managed by the Server Model
- You can grant access by adding one of the following to the managed server in admin.
- User State
- User Groups
- Main Characters Faction
- Main Characters Alliance
- Main Characters Corporation
- Main Character
- You can grant access by adding one of the following to the managed server in admin.
Adding a Guild to Auth
- Add a new
DISCORD MANAGED SERVER
in admin - Set the guild id to match your new server
- set any access control settings you need
- Set the ignored groups for the server. These groups wll not be synced to this discord server.
- Click Save
- Goto Services in the main auth site
- Click "Link Discord" on the new server and add your auth bot to the correct server.
- People can now join as required