/// <summary> /// Runs the given command. /// </summary> /// <param name="command"></param> /// <returns></returns> public string RunCommand(string command, string[] args) { IBotCommand cmd = _commands.Find(x => x.GetCommand().Equals(command, StringComparison.OrdinalIgnoreCase)); if (cmd == null) { return("Hiba: nincs ilyen parancs."); } _log.Info("Running command: " + command); StatisticsCollector.GetInstance().IncrementExecutedCommandCount(); return(cmd.RunAction(args)); }