2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

add a bot started message, more thoroughly close aioclient

This commit is contained in:
Nick80835
2020-05-09 13:28:02 -04:00
parent be99660463
commit eb1e91ca0e

View File

@@ -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)