Add usage strings to all commands

This commit is contained in:
Ske 2019-07-10 12:03:41 +02:00
parent 1bd5e7e3ca
commit 305d8f220e
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ namespace PluralKit.Bot.Commands
public class HelpCommands: ModuleBase<PKCommandContext> public class HelpCommands: ModuleBase<PKCommandContext>
{ {
[Command("help")] [Command("help")]
[Remarks("help")]
public async Task HelpRoot([Remainder] string _ignored) public async Task HelpRoot([Remainder] string _ignored)
{ {
await Context.Channel.SendMessageAsync(embed: new EmbedBuilder() await Context.Channel.SendMessageAsync(embed: new EmbedBuilder()
@ -24,6 +25,7 @@ namespace PluralKit.Bot.Commands
} }
[Command("commands")] [Command("commands")]
[Remarks("commands")]
public async Task CommandList() public async Task CommandList()
{ {
await Context.Channel.SendMessageAsync( await Context.Channel.SendMessageAsync(

View File

@ -28,6 +28,7 @@ namespace PluralKit.Bot.Commands
[Command] [Command]
[Remarks("system <name>")]
public async Task Query(PKSystem system = null) { public async Task Query(PKSystem system = null) {
if (system == null) system = Context.SenderSystem; if (system == null) system = Context.SenderSystem;
if (system == null) throw Errors.NoSystemError; if (system == null) throw Errors.NoSystemError;
@ -151,6 +152,7 @@ namespace PluralKit.Bot.Commands
} }
[Command("fronter")] [Command("fronter")]
[Remarks("system [system] fronter")]
public async Task SystemFronter() public async Task SystemFronter()
{ {
var system = ContextEntity ?? Context.SenderSystem; var system = ContextEntity ?? Context.SenderSystem;
@ -163,6 +165,7 @@ namespace PluralKit.Bot.Commands
} }
[Command("fronthistory")] [Command("fronthistory")]
[Remarks("system [system] fronthistory")]
public async Task SystemFrontHistory() public async Task SystemFrontHistory()
{ {
var system = ContextEntity ?? Context.SenderSystem; var system = ContextEntity ?? Context.SenderSystem;
@ -175,6 +178,7 @@ namespace PluralKit.Bot.Commands
} }
[Command("frontpercent")] [Command("frontpercent")]
[Remarks("system [system] frontpercent [duration]")]
public async Task SystemFrontPercent(string durationStr = "30d") public async Task SystemFrontPercent(string durationStr = "30d")
{ {
var system = ContextEntity ?? Context.SenderSystem; var system = ContextEntity ?? Context.SenderSystem;