fix(bot): 🚑 Redis not connecting.
This commit is contained in:
+1
-3
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user