karmabot/JetKarmaBot/Commands/IChatCommand.cs
2019-02-07 17:45:49 +03:00

32 lines
743 B
C#

using System.Collections.Generic;
using Telegram.Bot.Args;
namespace JetKarmaBot.Commands
{
public interface IChatCommand
{
IReadOnlyCollection<string> Names { get; }
string Description { get; }
string DescriptionID { get; }
IReadOnlyCollection<ChatCommandArgument> Arguments { get; }
bool Execute(CommandString cmd, MessageEventArgs messageEventArgs);
}
public struct ChatCommandArgument
{
public string Name;
public bool Required;
public ChatCommandArgumentType Type;
public string Description;
public string DescriptionID;
}
public enum ChatCommandArgumentType
{
Boolean,
String,
Integer,
}
}