Update agent.js

This commit is contained in:
uukelele-scratch 2025-01-21 21:48:05 +00:00 committed by GitHub
parent 1171bad1e4
commit e92ff0f933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,6 +139,8 @@ export class Agent {
console.error('Error handling message:', error); console.error('Error handling message:', error);
} }
} }
this.respondFunc = respondFunc
this.bot.on('whisper', respondFunc); this.bot.on('whisper', respondFunc);
if (settings.profiles.length === 1) if (settings.profiles.length === 1)