fix(bot): 🚑 Redis not connecting properly.
This commit is contained in:
@@ -25,8 +25,6 @@ spec:
|
||||
- secretRef:
|
||||
name: bot-secrets
|
||||
env:
|
||||
- name: IS_DEBUG
|
||||
value: "false"
|
||||
- name: SHARD_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
||||
@@ -5,3 +5,4 @@ metadata:
|
||||
data:
|
||||
SUGGESTIONS_CHANNEL_ID: "1287841493343801447"
|
||||
SERVER_INVITE: "https://discord.gg/Cb3rCrTxmm"
|
||||
IS_DEBUG: "false"
|
||||
|
||||
+1
-3
@@ -2,8 +2,6 @@ from typing import Literal
|
||||
|
||||
from datetime import datetime, timezone, timedelta
|
||||
|
||||
from multiprocessing import managers
|
||||
|
||||
import sys
|
||||
|
||||
import discord
|
||||
@@ -32,8 +30,8 @@ class Payphone(commands.AutoShardedBot):
|
||||
log = logging.logger
|
||||
|
||||
redis: aredis.Redis = aredis.Redis(
|
||||
host="localhost" if config.IS_DEBUG else "redis.default.svc.cluster.local",
|
||||
connection_pool=aredis.ConnectionPool(
|
||||
host="localhost" if config.IS_DEBUG else "redis.default.svc.cluster.local",
|
||||
socket_timeout=3,
|
||||
socket_connect_timeout=10
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user