···8080 console.error('Error fetching parent chain:', error);
8181 }
8282 } else {
8383- // Default: analyze the parent post
8484- postToAnalyze = mention.parent;
8383+ // Ignore mentions that don't contain "how many" or "really"
8484+ console.log('Ignoring mention - no recognized command');
8585+ return;
8586 }
86878788 // More debug logging
···9394 }
94959596 if (!postToAnalyze || typeof postToAnalyze !== 'object' || !('text' in postToAnalyze)) {
9696- await mention.reply({
9797- text: "I need a post to analyze! Reply to any post with '@bot how many' and I'll check how many of its words are in the Bible."
9898- });
9797+ // This should only happen if someone uses the command on a post without a parent
9898+ console.log('No post found to analyze');
9999 return;
100100 }
101101