Пример #1
0
int main()
{
	IrcBot bot = IrcBot("NICK bytetrial\r\n","USER guest tolmoon tolsun :Steven S.\r\n");
	bot.start();

  return 0;

}
Пример #2
0
int main()
{
	Config config;
	IrcBot bot = IrcBot(config);
	bot.bot();

    return 0;
}
Пример #3
0
int main()
{
	IrcBot bot = IrcBot("NICK cTsunku\r\n","USER pillu pillu pillu :cTsunku\r\n");
    bot.start();

  return 0;

}
Пример #4
0
int main(int argc, char* argv[])
{
    QCoreApplication app(argc, argv);
    IrcBot bot;

    QSettings settings("settings.ini", QSettings::IniFormat);
    bot.setHost(settings.value("host", "irc.freenode.net").toString());
    bot.setPort(settings.value("port", 6667).toInt());
    bot.setUserName(settings.value("username", "communi").toString());
    bot.setNickName(settings.value("nickname", "communi-bot").toString());
    bot.setRealName(settings.value("realname", "communi bot").toString());
    bot.setChannel(settings.value("channel", "#communi").toString());

    bot.open();
    return app.exec();
}