Move ranking_watcher from chombot-kcc to chombot-common and add to chombot#293
Move ranking_watcher from chombot-kcc to chombot-common and add to chombot#293
Conversation
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
|
@copilot Add all 3 crates into workspace as dependencies, eg. |
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
Updated in commit 5118626. The workspace dependencies are now configured as suggested, but it still fails to compile with the same error - |
|
@copilot Great, but actually, please move this feature to |
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
Done in commit 76e66dc. The |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #293 +/- ##
==========================================
- Coverage 43.27% 42.66% -0.62%
==========================================
Files 21 21
Lines 1368 1397 +29
==========================================
+ Hits 592 596 +4
- Misses 776 801 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot Very well. Now with that done, please add the functionality of ranking watcher to chombot in similar fashion to how it's implemented in chombot-kcc. At the end, make sure to run rustfmt (with nightly toolchain) to ensure that formatting checks pass. |
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
Done in commit ab15521. Added ranking_watcher functionality to chombot with:
|
The
ranking_watcherfeature does not require KCC-specific integration and should be available to all chombot implementations as shared functionality.Changes
ranking_watchermodule fromchombot-kcc/src/tochombot-common/src/with all submodules (usma,notifier) and test datachombot-common/src/lib.rsto export the ranking_watcher modulechombot-kcc/src/main.rsto importranking_watcherfrom the chombot-common library cratecrate::instead ofchombot_common::for internal referencesworkspace = truepattern for all three crates (chombot-common, chombot, chombot-kcc)feature_ranking_watcherCLI flag to enable the featureranking_watcher_channel_idconfig field toGuildConfigfor per-guild configurationRankingWatcherChannelListProvidertrait with support for multiple guildsUsage
Chombot Configuration
Enable ranking watcher in chombot by setting the
--feature-ranking-watcherflag and configuringranking_watcher_channel_idin your guild config:Testing
The feature is now properly located in the shared common library where it can be used by any chombot implementation, and is fully integrated into the chombot binary.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.