From 287248cf8b0961c2ca0a58385baf4da8aade039f Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Sat, 20 Apr 2024 13:45:42 +0200 Subject: [PATCH] use correct env names for hardcoded roles --- .env.example | 2 +- bot/.env.example | 3 +++ bot/src/run.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 19daa85..b95cdae 100644 --- a/.env.example +++ b/.env.example @@ -8,7 +8,7 @@ BOT_PRESENCE_ACTIVITY=watching BOT_PRESENCE_STATUS=dnd BOT_GALTINN_ROLE_MEMBER= -BOT_GALTINN_ROLE_ACTIVE= +BOT_GALTINN_ROLE_VOLUNTEER= BOT_EMOJI_ONLINE="<:online:516328785910431754>" BOT_EMOJI_IDLE="<:idle:516328783347843082>" diff --git a/bot/.env.example b/bot/.env.example index e71df5e..59088ae 100644 --- a/bot/.env.example +++ b/bot/.env.example @@ -7,6 +7,9 @@ BOT_PRESENCE_MESSAGE="out for expiring memberships" BOT_PRESENCE_ACTIVITY=watching BOT_PRESENCE_STATUS=dnd +BOT_GALTINN_ROLE_MEMBER= +BOT_GALTINN_ROLE_VOLUNTEER= + BOT_EMOJI_ONLINE=<:online:516328785910431754> BOT_EMOJI_IDLE=<:idle:516328786046337792> BOT_EMOJI_DND<:dnd:516328786035955200> diff --git a/bot/src/run.py b/bot/src/run.py index c7be416..19f4f9c 100644 --- a/bot/src/run.py +++ b/bot/src/run.py @@ -31,8 +31,8 @@ class Bot(commands.Bot): "auth_token": os.environ.get("GALTINN_AUTH_TOKEN"), } self.galtinn_roles = { - "member": os.environ.get("GALTINN_MEMBER_ROLE"), - "volunteer": os.environ.get("GALTINN_VOLUNTEER_ROLE"), + "member": os.environ.get("BOT_GALTINN_ROLE_MEMBER"), + "volunteer": os.environ.get("BOT_GALTINN_ROLE_VOLUNTEER"), } self.guild_id = os.environ.get("BOT_DEV_GUILD", 1162158668079444199)