You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement friend recommendations based on shared programming languages
This commit addresses issue #60 by adding a new "friends" command that recommends
users based on the number of shared programming languages.
Features:
- New command pattern accepting "друзья", "friends", "рекомендации", or "recommendations"
- Algorithm that finds users with common programming languages
- Sorting by number of shared languages (descending) then by karma (descending)
- Optional parameter to limit the number of recommendations (default: 10)
- Comprehensive message formatting with shared languages display
- Message length truncation for VK API limits
Files modified:
- python/patterns.py: Added FRIENDS_RECOMMENDATIONS pattern
- python/modules/commands.py: Implemented friends_recommendations method
- python/modules/commands_builder.py: Added build_friends_recommendations method
- python/__main__.py: Registered the new command
- python/tests.py: Added unit tests for the new functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments