scopes as env var
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-08-28 08:22:03 +01:00
parent eba7f16374
commit bbc497bdb9
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Enhancement: Added some refreshing new fonts (sora & atkison hyperlegible)
- Enhancement: all table cells no longer wrap text
- Fix: fixed a padding issue with link-style buttons in table cells
- Enhancement: `DISCORD_SCOPES` as env var, rather than hard coded
- Other: added license file
**v0.3.2**

View File

@ -137,7 +137,7 @@ AUTHENTICATION_BACKENDS = [
BOT_TOKEN = env("BOT_TOKEN", default=None)
DISCORD_KEY = env("DISCORD_KEY", default=None)
DISCORD_SECRET = env("DISCORD_SECRET", default=None)
DISCORD_SCOPES = ["identify", "guilds"]
DISCORD_SCOPES = env("DISCORD_SCOPES", default="identity,guilds").split(",") # ["identify", "guilds"]
DISCORD_CODE_EXCHANGE_REQUEST = {
"headers": {"Content-Type": "application/x-www-form-urlencoded"},
"data": {