aboutsummaryrefslogtreecommitdiff
path: root/bot/src/init.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-03 18:57:06 -0500
committerAndrew Lee <andrew@alee14.me>2025-03-03 18:57:06 -0500
commit11bb9ab6b30314d91209bc9888d95783cc247e98 (patch)
treeceddb0f02d0b587deab83c3f13f83f086be23d27 /bot/src/init.js
parentfd7f8eba960981482fabf350995bf753feebb176 (diff)
downloadAleeBot-11bb9ab6b30314d91209bc9888d95783cc247e98.tar.gz
AleeBot-11bb9ab6b30314d91209bc9888d95783cc247e98.tar.bz2
AleeBot-11bb9ab6b30314d91209bc9888d95783cc247e98.zip
Added back "addquote"; ollama integration; Cleaned up bot.js
Diffstat (limited to 'bot/src/init.js')
-rw-r--r--bot/src/init.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/bot/src/init.js b/bot/src/init.js
new file mode 100644
index 0000000..8da3783
--- /dev/null
+++ b/bot/src/init.js
@@ -0,0 +1,13 @@
+import { syncDB } from './utils/sync.js';
+import { apiServer } from './api/server.js';
+import { event } from './handlers/event.js';
+import { command } from './handlers/command.js';
+//import { deployCommands } from './util/deploy.js';
+
+export async function init(client) {
+ await syncDB();
+ //deployCommands().then(() => console.log('[>] Deployed commands'));
+ await apiServer(client);
+ await event(client).then(() => console.log('[>] Event module loaded'));
+ await command(client).then(() => console.log('[>] Command module loaded'));
+}