diff --git a/.changeset/thin-ducks-remain.md b/.changeset/thin-ducks-remain.md new file mode 100644 index 00000000..aed2da0d --- /dev/null +++ b/.changeset/thin-ducks-remain.md @@ -0,0 +1,5 @@ +--- +'@tribesxyz/ayaos': patch +--- + +minor xmtp fix diff --git a/src/plugins/xmtp/client.ts b/src/plugins/xmtp/client.ts index f93326df..90a34992 100644 --- a/src/plugins/xmtp/client.ts +++ b/src/plugins/xmtp/client.ts @@ -199,8 +199,13 @@ export class XMTPManager { if (this.isConversationGroup(conversation)) { const isBotMentioned = this.isBotMentioned(message) const isReplyToBot = this.isReplyToBot(message) + + if (isBotMentioned || isReplyToBot) { + return true + } + const isBotAction = await this.isBotAction(message) - return isBotMentioned || isReplyToBot || isBotAction + return isBotAction } // Default to processing (fallback for unknown conversation types) @@ -288,8 +293,8 @@ export class XMTPManager { return true } - const xmptEnsName = this.runtime.getSetting('XMTP_ENS_NAME') - if (xmptEnsName && text.includes(xmptEnsName)) { + const xmptEnsName = z.string().parse(this.runtime.getSetting('XMTP_ENS_NAME')) + if (xmptEnsName && text.includes(xmptEnsName.toLowerCase())) { ayaLogger.info(`Bot mentioned with ENS name: ${xmptEnsName}`) return true }