more typos, and some command overload fun

This commit is contained in:
13xforever 2019-02-06 04:50:44 +05:00
parent 8694376cb2
commit 7eff98fc8f
2 changed files with 19 additions and 5 deletions

View File

@ -27,7 +27,7 @@ namespace CompatBot.Commands
=> Remove(ctx, ids);
[Command("Clean"), Aliases("cleanup", "Clear"), RequiresBotModRole]
[Command("clean"), Aliases("cleanup", "Clear"), RequiresBotModRole]
[Description("Removes past events")]
public Task ClearE3(CommandContext ctx, [Description("Optional year to remove, by default everything before current year")] int? year = null)
=> Clear(ctx, year);

View File

@ -14,7 +14,7 @@ using Microsoft.EntityFrameworkCore;
namespace CompatBot.Commands
{
[Group("events"), Aliases("event", "e")]
[Group("event"), Aliases("events", "e")]
[Description("Provides information about the various events in the game industry")]
internal sealed class Events: EventsBaseCommand
{
@ -44,7 +44,7 @@ namespace CompatBot.Commands
public Task RemoveGeneric(CommandContext ctx, [Description("Event IDs to remove separated with space")] params int[] ids)
=> Remove(ctx, ids);
[Command("Clean"), Aliases("cleanup", "Clear"), RequiresBotModRole]
[Command("clean"), Aliases("cleanup", "Clear"), RequiresBotModRole]
[Description("Removes past events")]
public Task ClearGeneric(CommandContext ctx, [Description("Optional year to remove, by default everything before current year")] int? year = null)
=> Clear(ctx, year);
@ -71,9 +71,23 @@ namespace CompatBot.Commands
[Command("schedule"), Aliases("show", "list")]
[Description("Outputs current schedule")]
public Task ListGeneric(CommandContext ctx)
=> List(ctx, null, null);
[Command("schedule")]
public Task ListGeneric(CommandContext ctx,
[Description("Optional event name to list schedule for")] string eventName = null,
[Description("Optional year to list")] int? year = null)
[Description("Optional year to list")] int year)
=> List(ctx, null, year);
[Command("schedule")]
public Task ListGeneric(CommandContext ctx,
[Description("Optional event name to list schedule for")] string eventName)
=> List(ctx, eventName, null);
[Command("schedule")]
public Task ListGeneric(CommandContext ctx,
[Description("Optional event name to list schedule for")] string eventName,
[Description("Optional year to list")] int year)
=> List(ctx, eventName, year);
[Command("countdown")]