- Add global event handler to log all IRC events
- Add on_join handler to properly track channel joins
- Add on_disconnect handler to detect connection drops
- Add on_privmsg handler to catch messages that might not trigger pubmsg
- Add detailed debug logging throughout message flow
- Improve test_irc.py with same debugging capabilities
Added two diagnostic tools:
test_mention.py:
- Tests MentionDetector with various message formats
- Shows nickname generation (Kene from Kenearos)
- Displays extracted content from mentions
- Helps verify mention detection is working correctly
test_irc.py:
- Minimal IRC bot for testing message reception
- Prints all received messages to console
- Helps diagnose if IRC connection is receiving messages
- Useful for debugging connection issues
These tools help troubleshoot when bot doesn't respond:
1. Run test_mention.py to verify detection logic
2. Run test_irc.py to verify IRC message reception