mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
33 lines
757 B
C#
33 lines
757 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using JetKarmaBot.Services.Handling;
|
|
|
|
namespace JetKarmaBot.Commands
|
|
{
|
|
public interface IChatCommand
|
|
{
|
|
IReadOnlyCollection<string> Names { get; }
|
|
string Description { get; }
|
|
string DescriptionID { get; }
|
|
IReadOnlyCollection<ChatCommandArgument> Arguments { get; }
|
|
|
|
Task<bool> Execute(RequestContext ctx);
|
|
}
|
|
|
|
public struct ChatCommandArgument
|
|
{
|
|
public string Name;
|
|
public bool Required;
|
|
public ChatCommandArgumentType Type;
|
|
public string Description;
|
|
public string DescriptionID;
|
|
}
|
|
|
|
public enum ChatCommandArgumentType
|
|
{
|
|
Boolean,
|
|
String,
|
|
Integer,
|
|
}
|
|
}
|