static void Main(string[] args) { var confs = ConfigLoader.LoadConfig("config.txt"); List<Server> servers = ConfigLoader.OrganizeConfsPerServer(confs); Engine engine = new Engine(servers, confs); engine.LoadFeatures(); engine.InitializeFeatures(); engine.StartClients(); while (true) { System.Threading.Thread.Sleep(50); } }
static void Main(string[] args) { var confs = ConfigLoader.LoadConfig("config.txt"); List<Server> servers = ConfigLoader.OrganizeConfsPerServer(confs); /* ChannelConfigs confs = new ChannelConfigs { //Todo: Load ChannelConfigs //derp herp channelConfigs = new Dictionary<string,Dictionary<string,string>>() }; string placeholderchannel = "#testingk"; confs.channelConfigs[placeholderchannel] = new Dictionary<string, string>(); var kikkeli = new Dictionary<string, string>(); kikkeli["nickname"] = "SimoBot"; kikkeli["password"] = "******"; kikkeli["realname"] = "Simo Bot"; kikkeli["username"] = "******"; kikkeli["server"] = "openirc.snt.utwente.nl"; kikkeli["channels"] = placeholderchannel; confs.channelConfigs[placeholderchannel] = kikkeli; */ Engine engine = new Engine(servers, confs); engine.LoadFeatures(); engine.InitializeFeatures(); engine.StartClients(); while (true) { System.Threading.Thread.Sleep(50); } }