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