public Task GetHelpStats(CommandContext ctx) { var sb = new StringBuilder(); var commandPrefix = _options.CommandPrefix; sb.AppendLine(); sb.AppendLine($"Command arguments:"); sb.AppendLine($"`username .. Discord username with # identifier or @mention`"); sb.AppendLine($"`emote .. Discord emote (server emotes only)`"); sb.AppendLine($"`-p, --page .. Displays a different page of the result set (default 1st page)`"); sb.AppendLine($"`-i, --interval .. Limits result set to given interval (default 2 months)`"); sb.AppendLine($"` Valid interval units: \"m\", \"w\", \"d\"`"); sb.AppendLine($"` Optionally use interval value \"lifetime\"`"); sb.AppendLine(); sb.AppendLine($"Usage examples:"); sb.AppendLine($"`{commandPrefix}stats best`"); sb.AppendLine($"`{commandPrefix}stats worst --page 2`"); sb.AppendLine($"`{commandPrefix}stats user User#1234 --interval 3m`"); sb.AppendLine($"`{commandPrefix}stats me -p 2 -i 2w`"); sb.AppendLine($"`{commandPrefix}stats emote :a_server_emote:`"); var result = FormattedResultHelper.BuildMessage($"Shows server-wide emote stats-or for a specific user", sb.ToString()); return(ctx.RespondAsync(result)); }
public Task GetHelp(CommandContext ctx) { var sb = new StringBuilder(); var commandPrefix = _options.CommandPrefix; sb.AppendLine($"`{commandPrefix}stats me [?interval] [?page]`"); sb.AppendLine($"`{commandPrefix}stats best [?interval] [?page]`"); sb.AppendLine($"`{commandPrefix}stats emote [emote] [?interval]`"); sb.AppendLine($"`{commandPrefix}stats help`"); sb.AppendLine(); sb.AppendLine("Other commands"); sb.AppendLine($"`{commandPrefix}prep me`"); sb.AppendLine($"`{commandPrefix}prep user [username]`"); sb.AppendLine($"`{commandPrefix}meow`"); sb.AppendLine($"`{commandPrefix}big [emote]`"); sb.AppendLine($"`{commandPrefix}bigger [emote]`"); sb.AppendLine($"`{commandPrefix}deepfry [emote]`"); sb.AppendLine($"`{commandPrefix}oilpaint [emote]`"); sb.AppendLine($"*(\"?\" denotes an optional parameter)*"); sb.AppendLine(); sb.AppendLine("Kattbot source code: github.com/selfdocumentingcode/Kattbot"); var result = FormattedResultHelper.BuildMessage($"Commands", sb.ToString()); return(ctx.RespondAsync(result)); }