示例#1
0
        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>()
            };
        }
示例#2
0
文件: Engine.cs 项目: kenkku/SimoBot
        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>()
            };
        }
示例#3
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     this.features             = features;
     features.commands["help"] = Execute;
 }
示例#4
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["horos"]  = Execute;
     features.commands["hitler"] = NotImplemented;
 }
示例#5
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["uguu"] = Execute;
 }
示例#6
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["niksi"] = Execute;
 }
示例#7
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     // replace "r" with !<this part> of the command
     features.commands["r"] = Execute; // Name the
 }
示例#8
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     // replace "r" with !<this part> of the command
     features.commands["r"] = Execute; // Name the
 }
示例#9
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["expl"] = Execute;
     features.commands["add"] =  ExecuteAdd;
     features.commands["remove"] = ExecuteRemove;
 }
示例#10
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["ignore"]   = Execute;
     features.commands["unignore"] = ExecuteUnignore;
 }
示例#11
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["horos"] = Execute;
     features.commands["hitler"] = NotImplemented;
 }
示例#12
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["expl"]   = Execute;
     features.commands["add"]    = ExecuteAdd;
     features.commands["remove"] = ExecuteRemove;
 }
示例#13
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     this.features = features;
     features.commands["help"] = Execute;
 }