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

@ -140,6 +140,8 @@ export class Agent {
}
}
this.respondFunc = respondFunc
this.bot.on('whisper', respondFunc);
if (settings.profiles.length === 1)
this.bot.on('chat', respondFunc);