aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-05-01 14:22:57 +0100
committerGravatar shtlrs <[email protected]>2023-05-06 13:20:46 +0100
commit45087ea8845227fbb16ee75c4a4836e9dcdf91c8 (patch)
tree4bc619b3e54408db7d4d41f606d154643569de78 /bot/constants.py
parentupdate lovefest (diff)
update Roles
Diffstat (limited to 'bot/constants.py')
-rw-r--r--bot/constants.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 540183ee..b17fc920 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -278,14 +278,19 @@ if Bot.month_override is not None:
Month(Bot.month_override)
+class _Roles(EnvConfig):
+
+ EnvConfig.Config.env_prefix = "roles_"
-class Roles(NamedTuple):
owners = 267627879762755584
- admins = int(environ.get("BOT_ADMIN_ROLE_ID", 267628507062992896))
+ admins = 267628507062992896
moderation_team = 267629731250176001
- helpers = int(environ.get("ROLE_HELPERS", 267630620367257601))
+ helpers = 267630620367257601
core_developers = 587606783669829632
- everyone = int(environ.get("BOT_GUILD", 267624335836053506))
+ everyone = Bot.guild
+
+
+Roles = _Roles()
class Tokens(NamedTuple):