From 5e0f69d1a713139b46819cdf0c66b28f477bbc05 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Tue, 6 May 2025 18:16:48 -0600 Subject: [PATCH] a --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a481da6..4e08e1b 100644 --- a/main.py +++ b/main.py @@ -77,7 +77,7 @@ class MyBot(commands.Bot): # Create Postgres pool on this loop self.pg_pool = await asyncpg.create_pool( - dsn=os.environ["DATABASE_URL"], + dsn=settings_manager.DATABASE_URL, # Use DATABASE_URL from settings_manager min_size=1, max_size=10, loop=self.loop # Explicitly use the bot's event loop @@ -86,7 +86,7 @@ class MyBot(commands.Bot): # Create Redis client on this loop self.redis = await aioredis.from_url( - os.environ["REDIS_URL"], + settings_manager.REDIS_URL, # Use REDIS_URL from settings_manager max_connections=10, decode_responses=True, )