From 92eb1844f4f917e66e4208ea6593e4d4261c18a2 Mon Sep 17 00:00:00 2001 From: Sengolda <79252176+Sengolda@users.noreply.github.com> Date: Fri, 27 Aug 2021 00:21:15 +0530 Subject: [PATCH] Set `bot.session` loop to be `bot.loop` --- main/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/bot.py b/main/bot.py index 6eb5090..33d12ae 100644 --- a/main/bot.py +++ b/main/bot.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): self.colors = {} self.non_sync = ["music", "core", "rtfm"] self.token = self.config.get('Groot', 'token') - self.session = aiohttp.ClientSession() + self.session = aiohttp.ClientSession(loop=self.loop) self.maintenance = False self.cache = CacheManager() self.ipc = ipc.Server(