Just trying different things

pull/8/head
sgoudham 4 years ago
parent 1479b509ee
commit c2d61d1185

@ -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 <https://www.gnu.org/licenses/>.
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())

@ -38,7 +38,5 @@ async def test(ctx):
print(client.member_cache.cache)
client.create_connection()
# Run the bot
client.execute()

Loading…
Cancel
Save