diff --git a/bot/config.json b/bot/config.json index a2f7354..b5ba094 100644 --- a/bot/config.json +++ b/bot/config.json @@ -8,7 +8,7 @@ }, "ai": { "model": "gemma3", - "ollamaUrl": "http://localhost:11434/api/generate", + "ollamaUrl": "http://192.168.1.3:11434/api/generate", "persona": "a curious minecraft explorer who learns from the world around them", "responseLength": 30 }, diff --git a/bot/core/context.js b/bot/core/context.js index ebb38e0..517ea84 100644 --- a/bot/core/context.js +++ b/bot/core/context.js @@ -13,6 +13,9 @@ module.exports = { setLastChat: (chat) => { lastChat = chat; }, getLastChat: () => lastChat, + setDB: (dbInstance) => { db = dbInstance; }, + getDB: () => db, + getContextSnapshot: () => ({ bot, lastChat