diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-20 01:47:19 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-20 01:47:19 -0400 |
| commit | c06c0be2e7520ceaf5284472d0d99c7417aceb7a (patch) | |
| tree | 22cd41cc51c0cdd345bf2133c6ed85772b6d306f /bot/src/init.js | |
| parent | bdeef58376711e9a49c3b6f26aaf3fc65fa6200b (diff) | |
| download | AleeBot-c06c0be2e7520ceaf5284472d0d99c7417aceb7a.tar.gz AleeBot-c06c0be2e7520ceaf5284472d0d99c7417aceb7a.tar.bz2 AleeBot-c06c0be2e7520ceaf5284472d0d99c7417aceb7a.zip | |
New command; New logging feature; QOTD (WIP)
Diffstat (limited to 'bot/src/init.js')
| -rw-r--r-- | bot/src/init.js | 4 |
1 files changed, 3 insertions, 1 deletions
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')); |
