1.0.3 #285 #286

Merged
edraft merged 5 commits from 1.0.3 into master 2023-03-30 16:55:32 +02:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 17c2acd77c - Show all commits

View File

@ -52,7 +52,7 @@ class Application(DiscordBotApplicationABC):
self._api.join()
return
self._logger.trace(__name__, f"Try to start {DiscordBotService.__name__}")
self._logger.info(__name__, f"Try to start {DiscordBotService.__name__}")
await self._bot.start_async()
await self._bot.stop_async()
except Exception as e:
@ -64,9 +64,9 @@ class Application(DiscordBotApplicationABC):
self._is_stopping = True
try:
self._logger.trace(__name__, f"Try to stop {DiscordBotService.__name__}")
self._logger.info(__name__, f"Try to stop {DiscordBotService.__name__}")
await self._bot.close()
self._logger.trace(__name__, f"Stopped {DiscordBotService.__name__}")
self._logger.info(__name__, f"Stopped {DiscordBotService.__name__}")
except Exception as e:
self._logger.error(__name__, "stop failed", e)

View File

@ -39,6 +39,7 @@ class Program:
)
self.app: Application = await app_builder.build_async()
await self.app.run_async()
Console.write_line("Finished app.run_async")
async def stop(self):
if self.app is None: