Added player detector implementation

Added computer event listeners
This commit is contained in:
Michael Chen
2022-01-17 19:10:14 +01:00
parent 92aafcde70
commit e7b056342f
8 changed files with 188 additions and 42 deletions

View File

@ -1,4 +1,5 @@
using Discord.WebSocket;
using MinecraftDiscordBot.Models;
using MinecraftDiscordBot.Services;
using System.Reflection;
using System.Text;
@ -8,6 +9,7 @@ namespace MinecraftDiscordBot.Commands;
public abstract class CommandRouter : ICommandHandler<ResponseType> {
public record struct HandlerStruct(HandleCommandDelegate<ResponseType> Delegate, CommandHandlerAttribute Attribute);
private readonly Dictionary<string, HandlerStruct> _handlers = new();
public abstract string HelpTextPrefix { get; }
public CommandRouter() {
foreach (var method in GetType().GetMethods())