aboutsummaryrefslogtreecommitdiff
path: root/bot/src/utils
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/utils
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/utils')
-rw-r--r--bot/src/utils/ollama.js3
-rw-r--r--bot/src/utils/sync.js6
2 files changed, 6 insertions, 3 deletions
diff --git a/bot/src/utils/ollama.js b/bot/src/utils/ollama.js
new file mode 100644
index 0000000..af0b9f9
--- /dev/null
+++ b/bot/src/utils/ollama.js
@@ -0,0 +1,3 @@
+import { Ollama } from 'ollama';
+
+export const ollama = new Ollama({ host: `${process.env.OLLAMA_URL}` });
diff --git a/bot/src/utils/sync.js b/bot/src/utils/sync.js
index ecee7b1..d51a081 100644
--- a/bot/src/utils/sync.js
+++ b/bot/src/utils/sync.js
@@ -4,14 +4,14 @@ import { guildSettings } from '../models/guild-settings.js';
export function syncDB() {
quote.sync({alter: true}).then(() => {
- console.log('Quote database synced!');
+ console.log('[>] Quote database synced!');
});
pendingQuote.sync({alter: true}).then(() => {
- console.log('Pending Quote database synced!');
+ console.log('[>] Pending Quote database synced!');
});
guildSettings.sync({alter: true}).then(() => {
- console.log('Guild database synced!');
+ console.log('[>] Guild database synced!');
});
}