fix(bot): 🚑 Redis not connecting properly.

This commit is contained in:
Nyeki.py
2024-11-03 12:46:01 -03:00
parent af0cf9cbb5
commit edb8ad65c7
3 changed files with 2 additions and 5 deletions
-2
View File
@@ -25,8 +25,6 @@ spec:
- secretRef:
name: bot-secrets
env:
- name: IS_DEBUG
value: "false"
- name: SHARD_ID
valueFrom:
fieldRef:
+1
View File
@@ -5,3 +5,4 @@ metadata:
data:
SUGGESTIONS_CHANNEL_ID: "1287841493343801447"
SERVER_INVITE: "https://discord.gg/Cb3rCrTxmm"
IS_DEBUG: "false"
+1 -3
View File
@@ -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
)