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