aboutsummaryrefslogtreecommitdiff
path: root/bot/src/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/init.js')
-rw-r--r--bot/src/init.js4
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'));