This repository has been archived on 2022-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
sh_gismo/src/gismo/application.py

17 lines
543 B
Python
Raw Normal View History

2021-11-15 00:52:49 +01:00
class Application(ApplicationABC):
def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):
ApplicationABC.__init__(self, config, services)
2021-11-15 18:09:34 +01:00
self._bot: BotService = services.get_service(BotServiceABC)
self._logger: LoggerABC = services.get_service(LoggerABC)
2021-11-15 00:52:49 +01:00
async def configure(self):
pass
async def main(self):
2021-11-15 18:09:34 +01:00
try:
await self._bot.run()
except Exception as e:
self._logger.error(__name__, 'A fatal error occured starting the bot', e)