fix(bigbot): Fix docker rabbitmq (#4066)

This commit is contained in:
Fleny
2024-12-30 18:10:06 +01:00
committed by GitHub
parent a043ffbf41
commit 8aea9e3d58
11 changed files with 1046 additions and 845 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import 'dotenv/config'
// General Configurations
export const DEVELOPMENT = process.env.DEVELOPMENT ?? false
export const DEVELOPMENT = process.env.DEVELOPMENT === 'true'
export const DEV_SERVER_ID = process.env.DEV_SERVER_ID
export const DISCORD_TOKEN = assertEnv('DISCORD_TOKEN')
@@ -36,7 +36,7 @@ export const GATEWAY_PORT = parseNumber(assertEnv('GATEWAY_PORT'), 'GATEWAY_PORT
// Message queue (RabbitMQ configuration)
export const MESSAGEQUEUE_ENABLE = process.env.MESSAGEQUEUE_ENABLE === "true"
export const MESSAGEQUEUE_ENABLE = process.env.MESSAGEQUEUE_ENABLE === 'true'
export const MESSAGEQUEUE_URL = process.env.MESSAGEQUEUE_URL
export const MESSAGEQUEUE_USERNAME = process.env.MESSAGEQUEUE_USERNAME
@@ -37,7 +37,7 @@ export function createWorker(workerId: number): Worker {
},
workerId,
messageQueue: {
enabled: MESSAGEQUEUE_ENABLE === 'true',
enabled: MESSAGEQUEUE_ENABLE,
username: MESSAGEQUEUE_USERNAME,
password: MESSAGEQUEUE_PASSWORD,
url: MESSAGEQUEUE_URL,