From c2d61d1185be7a48647777d9a40f91c05b97c494 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 21 Aug 2020 05:46:52 +0100 Subject: [PATCH] Just trying different things --- bot/__init__.py | 9 +-------- main.py | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index dd7fb1c6..fcf1e561 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -12,7 +12,6 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import asyncio import datetime import logging import os @@ -129,14 +128,8 @@ class Bot(commands.Bot): except asyncpg.PostgresError as e: print("PostGres Error: Modmail Records Could Not Be Loaded Into Cache On Startup", e) - # Release connection back to pool - await pool.release(conn) - - loop = asyncio.get_event_loop() - loop.run_until_complete(create_connection()) - # Establish Database Connection - # self.loop.run_until_complete(create_connection()) + self.loop.run_until_complete(create_connection()) # Load Information Into Cache self.loop.run_until_complete(startup_cache_log()) diff --git a/main.py b/main.py index 6e492c61..6d4656a5 100644 --- a/main.py +++ b/main.py @@ -38,7 +38,5 @@ async def test(ctx): print(client.member_cache.cache) -client.create_connection() - # Run the bot client.execute()