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

View File

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