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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user