changes to src/client.ts

This commit is contained in:
2025-05-18 16:51:44 -04:00
parent dac165f465
commit 2e1162af9d
3 changed files with 2 additions and 16 deletions

View File

@@ -162,7 +162,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
try {
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const personalityPath = path.join(__dirname, '../personality.json')
const personalityPath = path.join(__dirname, '../../src/personality.json')
const personalityData = await fs.readFile(personalityPath, 'utf-8')
const personalityJson = JSON.parse(personalityData)
personality = personalityJson.character || 'You are a friendly and helpful AI assistant.'