Commit 2ec8387
Subsystem 3c: command Discord surfaces (/help, /uptime, /leader, #info team summary) (#11)
* docs(3c): spec for command Discord surfaces (/help, /uptime, /leader, #info team summary)
Subsystem 3c — third slice of subsystem 3. Surfaces the in-game command
framework into Discord: /help (in-game + slash command listing), /uptime
(bot process), /leader (member-select promote), and a team summary field on
the per-server #info embed. Slash modules + help catalog live in the existing
Features.Commands project (Approach A); the #info edit is local to Workspace's
ServerInfoMessageRenderer. The #commands channel relay is deferred to 3c-ii.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs(3c): implementation plan for command Discord surfaces
7-task subagent-driven TDD plan: PromoteToLeaderAsync seam, CommandHelpCatalog
+ drift guard, HelpEmbedRenderer, LeaderService, the /help+/uptime+/leader
modules, and the #info team summary field. Verified signatures against the
codebase (IRustServerQuery, ServerInfoMessageRenderer, FakeRustSocketSource,
RustPlusApi PromoteToLeaderAsync) and the Discord project/package ref gap.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add PromoteToLeaderAsync to the connection query seam
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add command help catalog + help/leader/uptime localization keys
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add HelpEmbedRenderer
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add LeaderService (fetch members + promote)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add /help, /uptime, /leader slash + component modules
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(3c): add team summary field to #info embed
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(3c): tighten #info null-team test + document IRustServerQuery DI dependency
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore(3c): apply jb ReformatAndReorder
Cosmetic only — multi-line parameter/call-chain wrapping in the 3c files that
Roslynator does not flag (the repo's format gate). Build 0/0, full suite 249 green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore: stop tracking superpowers spec/plan docs (kept local only)
docs/superpowers/ is gitignored; these spec/plan files were force-added past
the ignore. Untrack them (3c here + the 3b-ii docs carried from PR #10) so they
stay local working docs and never ship in a PR. Files remain on disk.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(3c): address Copilot review on PR #11
- LeaderComponentModule.OnMemberSelectedAsync now surfaces the GetMembersAsync
error (e.g. not-connected if the socket dropped between select and click)
instead of falling through to a generic promote failure.
- LeaderComponentModule guards Context.Guild == null on both component handlers
(forged/DM payloads), matching the repo pattern (SettingsComponentModule etc.).
- ServerInfoMessageRenderer #info team summary treats an empty/whitespace leader
display name as missing and falls back to the SteamId (the API can report a
member with no name); +1 renderer test.
Build 0/0, full suite 250 green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 70a92c7 commit 2ec8387
29 files changed
Lines changed: 1096 additions & 1526 deletions
File tree
- docs/superpowers
- plans
- specs
- src
- RustPlusBot.Abstractions/Connections
- RustPlusBot.Features.Commands
- Help
- Leader
- Localization
- Modules
- RustPlusBot.Features.Connections
- Listening
- Supervisor
- RustPlusBot.Features.Workspace
- Localization
- Messages
- tests
- RustPlusBot.Features.Commands.Tests
- Help
- Leader
- RustPlusBot.Features.Connections.Tests
- Fakes
- RustPlusBot.Features.Workspace.Tests
- Messages
Lines changed: 0 additions & 1345 deletions
This file was deleted.
Lines changed: 0 additions & 176 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments