From c06c0be2e7520ceaf5284472d0d99c7417aceb7a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 20 Mar 2025 01:47:19 -0400 Subject: New command; New logging feature; QOTD (WIP) --- bot/src/init.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bot/src/init.js') diff --git a/bot/src/init.js b/bot/src/init.js index 8da3783..3557757 100644 --- a/bot/src/init.js +++ b/bot/src/init.js @@ -5,7 +5,9 @@ import { command } from './handlers/command.js'; //import { deployCommands } from './util/deploy.js'; export async function init(client) { - await syncDB(); + if (process.env.NODE_ENV === 'development') { + await syncDB(); + } //deployCommands().then(() => console.log('[>] Deployed commands')); await apiServer(client); await event(client).then(() => console.log('[>] Event module loaded')); -- cgit v1.2.3