public Engine(List<Server> servers, Dictionary<string, Dictionary<string, string>> confs) { this.servers = servers; this.confs = confs; handlers = new EngineMessageHandlers { commands = new Dictionary<string, MessageHandler>(), regexes = new Dictionary<Regex, MessageHandler>(), catchAlls = new Dictionary<string, MessageHandler>() }; }
public Engine(List <Server> servers, Dictionary <string, Dictionary <string, string> > confs) { this.servers = servers; this.confs = confs; handlers = new EngineMessageHandlers { commands = new Dictionary <string, MessageHandler>(), regexes = new Dictionary <Regex, MessageHandler>(), catchAlls = new Dictionary <string, MessageHandler>() }; }
public void RegisterFeature(EngineMessageHandlers features) { this.features = features; features.commands["help"] = Execute; }
public void RegisterFeature(EngineMessageHandlers features) { features.commands["horos"] = Execute; features.commands["hitler"] = NotImplemented; }
public void RegisterFeature(EngineMessageHandlers features) { features.commands["uguu"] = Execute; }
public void RegisterFeature(EngineMessageHandlers features) { features.commands["niksi"] = Execute; }
public void RegisterFeature(EngineMessageHandlers features) { // replace "r" with !<this part> of the command features.commands["r"] = Execute; // Name the }
public void RegisterFeature(EngineMessageHandlers features) { features.commands["expl"] = Execute; features.commands["add"] = ExecuteAdd; features.commands["remove"] = ExecuteRemove; }
public void RegisterFeature(EngineMessageHandlers features) { features.commands["ignore"] = Execute; features.commands["unignore"] = ExecuteUnignore; }