Add bot source

This commit is contained in:
Zontreck 2019-12-19 03:33:30 -07:00
parent 020d43b81c
commit 437cc0e0e1
14 changed files with 1788 additions and 0 deletions

View file

@ -0,0 +1,45 @@
/*
Copyright © 2019 Tara Piccari (Aria; Tashia Redrose)
Licensed under the AGPL-3.0
*/
using System;
using System.Reflection;
namespace Bot.CommandSystem
{
[System.AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class CommandGroup : Attribute
{
public string Command;
public int minLevel;
public MethodInfo AssignedMethod;
public int arguments = 0;
public CommandHelp cmdUsage;
public MessageHandler.Destinations CommandSource;
public CommandGroup(string Command, int minLevel, int argCount, string HelpText, MessageHandler.Destinations SourceType)
{
this.Command = Command;
this.minLevel = minLevel;
arguments = argCount;
CommandSource = SourceType;
cmdUsage = new CommandHelp(Command, minLevel, argCount, HelpText, SourceType);
}
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class CommandGroupMaster : Attribute
{
public string CommandGroupName;
public CommandGroupMaster(string CmdGroupName)
{
CommandGroupName = CmdGroupName;
}
}
}