this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix

alice c2bf2612 5d3db0fb

+5 -5
+5 -5
src/bot.ts
··· 80 80 console.error('Error fetching parent chain:', error); 81 81 } 82 82 } else { 83 - // Default: analyze the parent post 84 - postToAnalyze = mention.parent; 83 + // Ignore mentions that don't contain "how many" or "really" 84 + console.log('Ignoring mention - no recognized command'); 85 + return; 85 86 } 86 87 87 88 // More debug logging ··· 93 94 } 94 95 95 96 if (!postToAnalyze || typeof postToAnalyze !== 'object' || !('text' in postToAnalyze)) { 96 - await mention.reply({ 97 - 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." 98 - }); 97 + // This should only happen if someone uses the command on a post without a parent 98 + console.log('No post found to analyze'); 99 99 return; 100 100 } 101 101