// states/ActOnMemory.js const { chatWithAI } = require('../lib/ai-helper'); const { getBot } = require('../core/context'); const config = require('../config.json'); module.exports = async function ActOnMemory() { console.log('[STATE] ActOnMemory'); const prompt = 'You just died. Based on what you remember, what should you do next?'; const response = await chatWithAI(prompt, config.ai); const bot = getBot(); bot.chat(response); };