PycordBot.debug_guilds is now only set when debug is on
All checks were successful
Tests / test (3.10) (pull_request) Successful in 56s
Tests / test (3.11) (pull_request) Successful in 54s
Tests / test (3.8) (pull_request) Successful in 1m25s
Tests / test (3.9) (pull_request) Successful in 57s

This commit is contained in:
Profitroll 2024-05-19 15:03:01 +02:00
parent 5b16419f20
commit 7068e7f194
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -39,13 +39,14 @@ class PycordBot(Bot):
self.config = config self.config = config
super().__init__( super().__init__(
debug_guilds=(
self.config["bot"]["debug_guilds"] if self.config["debug"] else None
),
owner_ids=self.config["bot"]["owners"],
*args, *args,
**kwargs, **kwargs,
) )
self.owner_ids: List[int] = self.config["bot"]["owners"]
self.debug_guilds: List[int] = self.config["bot"]["debug_guilds"]
self.bot_locale: BotLocale = BotLocale( self.bot_locale: BotLocale = BotLocale(
default_locale=self.config["locale"], default_locale=self.config["locale"],
locales_root=(Path("locale") if locales_root is None else locales_root), locales_root=(Path("locale") if locales_root is None else locales_root),