Registered services

This commit is contained in:
2022-01-15 14:33:09 +01:00
parent 0ef2428b9d
commit c968fbb3d7
4 changed files with 49 additions and 12 deletions

View File

@@ -5,11 +5,9 @@ from cpl_core.dependency_injection import ServiceProviderABC
from cpl_core.logging import LoggerABC
from gismo_core.abc.bot_service_abc import BotServiceABC
from gismo_core.abc.module_service_abc import ModuleServiceABC
from gismo_core.configuration.bot_settings import BotSettings
from gismo_core.configuration.server_settings import ServerSettings
from gismo_core.service.bot_service import BotService
from gismo_data.service.migration_service import MigrationService
class Gismo(ApplicationABC):
@@ -31,6 +29,7 @@ class Gismo(ApplicationABC):
async def main(self):
try:
self._logger.debug(__name__, f'Starting...\n')
self._logger.trace(__name__, f'Try to start {BotService}')
await self._bot.start_async()
except Exception as e: