Fixed PyroClient.bot_locale

This commit is contained in:
Profitroll 2023-08-06 21:59:48 +02:00
parent 65838450ee
commit 1c1c71d40b
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -102,7 +102,8 @@ class PyroClient(Client):
self.start_time: float = 0
self.bot_locale: BotLocale = BotLocale(
(Path("locale") if locales_root is None else locales_root)
default_locale=self.config["locale"],
locales_root=(Path("locale") if locales_root is None else locales_root)
)
self.default_locale: str = self.bot_locale.default
self.locales: dict = self.bot_locale.locales