mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
32 lines
743 B
C#
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,
|
|
}
|
|
}
|