Implement automatic karma-based chat membership management - #289
Open
konard wants to merge 3 commits into
Open
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #131
- Add configuration for karma-based chats with customizable thresholds - Create KarmaChatManager class to handle automatic member management - Hook into karma changes to automatically add/remove users from chats - Add management commands for manual membership checks and status - Include comprehensive tests and usage examples - Support multiple chats with different karma requirements Addresses issue #131: Users are automatically added to chats when karma ≥ 2 and removed when karma < 2. System is configurable for any karma threshold and supports multiple chats with different levels. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
konard
marked this pull request as ready for review
September 12, 2025 22:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements automatic karma-based chat membership management as requested in issue #131.
Features
How it works
config.pyConfiguration Example
Available Commands
check chat membership- Check your membership in all karma chatscheck all membership- Admin command to check all users (resource intensive)chat status- Show status of current chatchat status [chat_id]- Show status of specific chatTechnical Implementation
modules/chat_membership.pycontainingKarmaChatManagerCommands.apply_karma()Files Changed
python/config.py- Added karma chat configurationpython/modules/chat_membership.py- New membership managerpython/modules/commands.py- Added hooks and management commandspython/__main__.py- Integration with main botpython/patterns.py- New command patternsexamples/karma_chat_usage_example.py- Usage examplespython/test_karma_chat.py- Test suiteTest plan
Note: Full integration testing requires a live VK bot instance with proper API tokens and chat permissions.
🤖 Generated with Claude Code
Resolves #131