Changed conversation determination in chat.

This commit is contained in:
Niels Simenon 2023-04-11 00:46:40 +02:00
parent 750997f3cc
commit 73117e7614
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ async function onCommand(args, context, isConversation) {
} }
function onMessage(message, context) { function onMessage(message, context) {
const isConversation = message.recipient === config.user.username && !context.room && !context.containsCommand; const isConversation = message.recipient === config.user.username && !message.type === 'whisper' && !context.containsCommand;
if (promptRegex.test(message.body) || isConversation) { if (promptRegex.test(message.body) || isConversation) {
onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation); onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation);