#define BOT_1_NICKNAME "[0]CoastCityRP"
#define BOT_1_REALNAME "CoastCityRoleplaySAMP" // This is the name that will only be visible in a whois
#define BOT_1_USERNAME "Anonymous" // This will be in front of the hostname (username@hostname)
#define BOT_2_NICKNAME "[1]CoastCityRP"
#define BOT_3_NICKNAME "[2]CoastCityRP"
#define IRC_SERVER "irc.kiwiirc.com"
#define IRC_PORT 6667
#define IRC_CHANNEL "#CoastCityRoleplay"
#define IRC_IDLE "#CoastCityRoleplay"
#define IRC_LIVE "#CoastCityRoleplay"
public OnGameModeInit()
{
gBotID[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
return 1;
}
public IRC_OnConnect(botid)
{
printf("*** IRC_OnConnect: Bot ID %d connected!", botid);
SetTimerEx("IRC_JoinDelay", 1000, 0, "d", botid);
IRC_JoinChannel(botid, IRC_CHANNEL);
IRC_JoinChannel(botid, IRC_IDLE);
IRC_JoinChannel(botid, IRC_LIVE);
IRC_AddToGroup(gGroupID, botid); // Add the IRC bot to the group
return 1;
}
Those communications from irc server are saved in a file usually called irc_log.txt in script files folder.
|