From c0a26ba776ab1d381da9539d03582c696f986f17 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 21 Aug 2020 04:50:51 +0100 Subject: [PATCH] Just trying to see what works and what doesn't --- bot/__init__.py | 2 +- main.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 8fc99223..169aed09 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -125,7 +125,7 @@ class Bot(commands.Bot): # Establish Database Connection # self.loop.run_until_complete(create_connection()) # Load Information Into Cache - self.loop.run_until_complete(startup_cache_log()) + # self.loop.run_until_complete(startup_cache_log()) async def post_bot_stats(): """Update guild count on discord.bots.gg""" diff --git a/main.py b/main.py index 6e492c61..8df6a939 100644 --- a/main.py +++ b/main.py @@ -20,6 +20,7 @@ from bot import Bot # Initiating Bot Object As Client client = Bot() +client.create_connection() @client.command() @@ -38,7 +39,5 @@ async def test(ctx): print(client.member_cache.cache) -client.create_connection() - # Run the bot client.execute()