From 7c97f7bd57ec72c9bce282017912ac469d667408 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 12:55:37 +0000 Subject: [PATCH] fix(bot): Clarify P tag for zap original author in system prompt - Explain p=recipient (gets sats) vs P=original author distinction - Add example for filtering zaps by original content author - Note that both tags are queryable via -p (case-insensitive) https://claude.ai/code/session_01X4HWkMGrghBv2RfY89L5Lz --- bot/src/llm.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/src/llm.ts b/bot/src/llm.ts index 2bf0a3a..b898d49 100644 --- a/bot/src/llm.ts +++ b/bot/src/llm.ts @@ -70,10 +70,13 @@ Use --tag k to filter by referenced kind. Example: req -k 7 --tag k 1 -p $me = reactions to notes mentioning me ZAP QUERIES: +Zaps have two pubkey tags: p=recipient (gets sats), P=original author (of zapped content). +Both are queried with -p (case-insensitive in filters). - Zaps received by someone: req -k 9735 -p - Zaps to notes specifically: req -k 9735 -p --tag k 1 - Zaps to articles: req -k 9735 -p --tag k 30023 -Note: -p filters by the zap recipient (who got zapped), -a is the LNURL server not the sender. +- Zaps to content authored by someone: req -k 9735 --tag P +Note: -a is the LNURL server that created the zap, not the sender. COMMENTS VS REPLIES: - "comments" = kind 1111 (NIP-22 comments on any content)