karmabot/JetBotLib/IChatCommand.cs
2019-12-22 09:29:22 +00:00

32 lines
709 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
namespace JetBotLib
{
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,
}
}