fix(bot): 🚑 Redis not connecting.

This commit is contained in:
Nyeki.py
2024-10-23 23:44:23 -03:00
parent 0b6dfb2361
commit b6ac3d70c4
+1 -3
View File
@@ -20,7 +20,7 @@ from payphone.core import constants, exceptions, formatting, help_command, confi
class Payphone(commands.AutoShardedBot): class Payphone(commands.AutoShardedBot):
redis: aredis.Redis redis: aredis.Redis = aredis.Redis(host="localhost" if config.IS_DEBUG else "redis")
def __init__(self) -> None: def __init__(self) -> None:
intents = discord.Intents.default() intents = discord.Intents.default()
@@ -46,8 +46,6 @@ class Payphone(commands.AutoShardedBot):
console. console.
""" """
self.redis = aredis.Redis(host="localhost" if config.IS_DEBUG else "redis")
await setup.init() await setup.init()
await self.redis.ping() await self.redis.ping()