mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-04 17:17:09 +00:00
more typos, and some command overload fun
This commit is contained in:
parent
8694376cb2
commit
7eff98fc8f
@ -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);
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user