#include #include #include #include #include #include #include #include #include #include #include #include int main(void) { SimpleConfigModel conf; conf.set("IRCClient", "server", std::string_view{"#irc.rizon.net"}); conf.set("IRCClient", "port", int64_t(6697)); conf.set("IRCClient", "autojoin", "#HorribleSubs", true); conf.set("IRCClient", "autojoin", "#green_testing", true); Contact3Registry cr; RegistryMessageModelImpl rmm{cr}; IRCClient1 ircc{conf}; IRCClientContactModel ircccm{cr, conf, ircc}; IRCClientMessageManager irccmm{rmm, cr, conf, ircc, ircccm}; //ircccm.join("#green_testing"); while (irc_is_connected(ircc.getSession())) { ircc.iterate(0.005f); std::this_thread::sleep_for(std::chrono::milliseconds(5)); } return 0; }