24 lines
679 B
C#
24 lines
679 B
C#
using SkyBot.Helpers;
|
|
using SkyBot.Models;
|
|
|
|
namespace SkyBot.Commands
|
|
{
|
|
public class Accept : ICommand
|
|
{
|
|
public string Name => "accept";
|
|
public string[] Aliases => [];
|
|
public string Description => "Accepts a pending action.";
|
|
public string Category => "Utils";
|
|
public string Usage => "accept";
|
|
public string[] SubCommands => [];
|
|
|
|
public async Task Execute(CommandContext ctx)
|
|
{
|
|
foreach (var handler in PendingActionRegistry.AcceptHandlers)
|
|
if (await handler(ctx)) return;
|
|
|
|
await MessageHelper.ReplyAsync(ctx, "You have nothing pending to accept.");
|
|
}
|
|
}
|
|
}
|