A-0.1 - Modularer Aufbau #13

Merged
edraft merged 118 commits from 0.1 into Alpha 2021-11-25 21:02:12 +01:00
Showing only changes of commit 4763c41b10 - Show all commits

View File

@ -22,7 +22,11 @@ class BotService(BotServiceABC, commands.Bot):
commands.Bot.__init__(self, command_prefix=bot_settings.prefix, help_command=None)
async def start_async(self):
self._logger.trace(__name__, 'Loading modules:')
self._modules.start_modules()
self._logger.trace(__name__, 'Finished loading modules')
self._logger.trace(__name__, 'Try to connect to discord')
self.run(self._discord_settings.token)
# continue at on_ready
@ -32,5 +36,3 @@ class BotService(BotServiceABC, commands.Bot):
# save data
except Exception as e:
self._logger.error(__name__, 'Stop failed', e)
async def on_ready(self): pass