Skip to content

Commit 98e812f

Browse files
HandyS11claude
andcommitted
docs(commands): list !afk in the help catalog
Add afk to CommandHelpCatalog.InGame (CommandGroup.TeamIntel, help.afk), add help.afk EN/FR descriptions to CommandLocalizationCatalog, and update CommandHelpCatalogTests.HandlerNames from 12 to 13 entries to keep the bidirectional drift test green. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 00f1e10 commit 98e812f

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/RustPlusBot.Features.Commands/Help/CommandHelpCatalog.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ internal static class CommandHelpCatalog
2222
new("team", CommandGroup.TeamIntel, "help.team"),
2323
new("steamid", CommandGroup.TeamIntel, "help.steamid"),
2424
new("alive", CommandGroup.TeamIntel, "help.alive"),
25+
new("afk", CommandGroup.TeamIntel, "help.afk"),
2526
new("prox", CommandGroup.TeamIntel, "help.prox"),
2627
new("uptime", CommandGroup.Bot, "help.uptime"),
2728
];

src/RustPlusBot.Features.Commands/Localization/CommandLocalizationCatalog.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ internal sealed class CommandLocalizationCatalog
8080
["help.team"] = "List all team members.",
8181
["help.steamid"] = "Show teammates' Steam IDs.",
8282
["help.alive"] = "Show how long each teammate has survived.",
83+
["help.afk"] = "List teammates who are AFK.",
8384
["help.prox"] = "Show distance to each teammate.",
8485
["help.uptime"] = "Show how long the bot has been running.",
8586
["help.slash.help"] = "Show this help message.",
@@ -164,6 +165,7 @@ internal sealed class CommandLocalizationCatalog
164165
["help.team"] = "Lister tous les membres de l'équipe.",
165166
["help.steamid"] = "Afficher les identifiants Steam des coéquipiers.",
166167
["help.alive"] = "Afficher depuis combien de temps chaque coéquipier survit.",
168+
["help.afk"] = "Lister les coéquipiers qui sont AFK.",
167169
["help.prox"] = "Afficher la distance à chaque coéquipier.",
168170
["help.uptime"] = "Afficher depuis combien de temps le bot fonctionne.",
169171
["help.slash.help"] = "Afficher ce message d'aide.",

tests/RustPlusBot.Features.Commands.Tests/Help/CommandHelpCatalogTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ namespace RustPlusBot.Features.Commands.Tests.Help;
55

66
public sealed class CommandHelpCatalogTests
77
{
8-
/// <summary>The 12 registered in-game handler names (see AddCommands / CommandRegistrationTests).</summary>
8+
/// <summary>The 13 registered in-game handler names (see AddCommands / CommandRegistrationTests).</summary>
99
private static readonly string[] HandlerNames =
1010
[
1111
"mute", "unmute", "uptime", "pop", "wipe", "time",
12-
"online", "offline", "team", "steamid", "alive", "prox",
12+
"online", "offline", "team", "steamid", "alive", "afk", "prox",
1313
];
1414

1515
[Fact]

0 commit comments

Comments
 (0)