From a976c7888423e657f946ac567695c7da23e9f9a7 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 1 May 2023 14:38:18 +0100 Subject: revert renaming of Client to Bot --- bot/constants.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 162f8aca..4a977b79 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -4,13 +4,12 @@ from os import environ from pydantic import BaseSettings - __all__ = ( "Branding", "Cats", "Channels", "Categories", - "Bot", + "Client", "Logging", "Colours", "Emojis", @@ -102,8 +101,8 @@ Categories = _Categories() CODEJAM_CATEGORY_NAME = "Code Jam" # Name of the codejam team categories -class _Bot(EnvConfig): - EnvConfig.Config.env_prefix = "bot_" +class _Client(EnvConfig): + EnvConfig.Config.env_prefix = "client_" name = "Sir Lancebot" guild = 267624335836053506 @@ -116,13 +115,13 @@ class _Bot(EnvConfig): month_override: int | None = None -Bot = _Bot() +Client = _Client() class _Logging(EnvConfig): EnvConfig.Config.env_prefix = "logging_" - debug = Bot.debug + debug = Client.debug file_logs = False trace_loggers = "" @@ -277,6 +276,7 @@ class Month(enum.IntEnum): if Client.month_override is not None: Month(Client.month_override) + class _Roles(EnvConfig): EnvConfig.Config.env_prefix = "roles_" @@ -286,7 +286,7 @@ class _Roles(EnvConfig): moderation_team = 267629731250176001 helpers = 267630620367257601 core_developers = 587606783669829632 - everyone = Bot.guild + everyone = Client.guild Roles = _Roles() -- cgit v1.2.3