コード例 #1
0
ファイル: IrcBot.cpp プロジェクト: uncannysnake/IRC-Bot
int main()
{
	IrcBot bot = IrcBot("NICK bytetrial\r\n","USER guest tolmoon tolsun :Steven S.\r\n");
	bot.start();

  return 0;

}
コード例 #2
0
ファイル: IRC-Bot.cpp プロジェクト: heihachi/IRC-Bot
int main()
{
	Config config;
	IrcBot bot = IrcBot(config);
	bot.bot();

    return 0;
}
コード例 #3
0
ファイル: main.cpp プロジェクト: jasuka/cppTsunku
int main()
{
	IrcBot bot = IrcBot("NICK cTsunku\r\n","USER pillu pillu pillu :cTsunku\r\n");
    bot.start();

  return 0;

}
コード例 #4
0
ファイル: main.cpp プロジェクト: MeliodasX/communi
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();
}