diff --git a/src/games/chat.js b/src/games/chat.js index 0cf5bad..dd6e92e 100644 --- a/src/games/chat.js +++ b/src/games/chat.js @@ -281,7 +281,7 @@ async function onCommand(args, context, isConversation) { } function onMessage(message, context) { - const isConversation = message.recipient === config.user.username && !message.type === 'whisper' && !context.containsCommand; + const isConversation = message.recipient === config.user.username && message.type !== 'whisper' && !context.containsCommand; if (promptRegex.test(message.body) || isConversation) { onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation);