Fixed config loading #1.1.0.rc1

This commit is contained in:
2023-08-16 08:30:12 +02:00
parent 1f47636e8d
commit 456d939b47
6 changed files with 26 additions and 10 deletions

View File

@@ -19,4 +19,4 @@ class ConfigExtension(ApplicationExtensionABC):
logger: LoggerABC = services.get_service(LoggerABC)
logger.debug(__name__, "Config extension started")
config: ConfigService = services.get_service(ConfigService)
config.reload_technician_config()
await config.reload_technician_config()

View File

@@ -26,4 +26,4 @@ class ConfigOnReadyEvent(OnReadyABC):
async def on_ready(self):
for guild in self._bot.guilds:
self._config_service.reload_server_config(self._servers.get_server_by_discord_id(guild.id))
await self._config_service.reload_server_config(self._servers.get_server_by_discord_id(guild.id))