Enable Discord service to deal with managed roles

This commit is contained in:
Erik Kalkoken
2020-05-23 04:28:01 +00:00
committed by Ariel Rin
parent 8b84def494
commit 7b815fd010
24 changed files with 1293 additions and 415 deletions

View File

@@ -10,7 +10,7 @@ Discord is very popular amongst ad-hoc small groups and larger organizations see
### Prepare Your Settings File
Make the following changing in your auth project's settings file (`local.py`):
Make the following changes in your auth project's settings file (`local.py`):
- Add `'allianceauth.services.modules.discord',` to `INSTALLED_APPS`
- Append the following to the bottom of the settings file:
@@ -131,7 +131,7 @@ Name Description
`DISCORD_BOT_TOKEN` Generated bot token for the Discord Auth app `''`
`DISCORD_CALLBACK_URL` Oauth callback URL `''`
`DISCORD_GUILD_ID` Discord ID of your Discord server `''`
`DISCORD_ROLES_CACHE_MAX_AGE` How long roles retrieved from the Discord server are caches locally in milliseconds `7200000`
`DISCORD_ROLES_CACHE_MAX_AGE` How long roles retrieved from the Discord server are cached locally in milliseconds `7200000`
`DISCORD_SYNC_NAMES` When set to True the nicknames of Discord users will be set to the user's main character name `False`
`DISCORD_TASKS_RETRY_PAUSE` Pause in seconds until next retry for tasks after an error occurred `60`
`DISCORD_TASKS_MAX_RETRIES` max retries of tasks after an error occurred `3`