From eb1e91ca0e740e954164363c091ecfeb0f5b5dba Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Sat, 9 May 2020 13:28:02 -0400 Subject: [PATCH] add a bot started message, more thoroughly close aioclient --- ubot/micro_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubot/micro_bot.py b/ubot/micro_bot.py index 46748e3..adfcca4 100644 --- a/ubot/micro_bot.py +++ b/ubot/micro_bot.py @@ -28,7 +28,9 @@ class MicroBot(): self.start_client() self.start_loader() self.loader.load_all_modules() + self.logger.info("Client successfully started.") self.client.run_until_disconnected() + self.client.loop.run_until_complete(self.loader.aioclient.close()) def start_loader(self): self.loader = Loader(self.client, self.logger, self.settings)