1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2026-04-04 11:40:05 +00:00

Initial work

This commit is contained in:
2018-03-29 01:34:48 +02:00
commit 3a85a9f18f
22 changed files with 1008 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
using DeukBot4.MessageHandlers.Permissions;
namespace DeukBot4.MessageHandlers
{
public class CommandAttribute : Attribute
{
public string Command { get; }
public PermissionLevel Permission { get; }
public CommandAttribute(string command, PermissionLevel permission)
{
Command = command;
Permission = permission;
}
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace DeukBot4.MessageHandlers
{
public class CommandHelpAttribute : Attribute
{
public string ShortHelp { get; }
public string LongHelp { get; }
public CommandHelpAttribute(string shortHelp, string longHelp)
{
ShortHelp = shortHelp;
LongHelp = longHelp;
}
}
}

View File

@@ -0,0 +1,16 @@
using System;
using DeukBot4.MessageHandlers.CommandHandler.RequestStructure;
namespace DeukBot4.MessageHandlers
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class CommandParametersAttribute : Attribute
{
public ParameterMatcher.ParameterType[] Types { get; }
public CommandParametersAttribute(ParameterMatcher.ParameterType[] types)
{
Types = types;
}
}
}