Setting IRC Bots as Admins
#1

This is what in the IRC script

PHP код:
public IRC_OnConnect(botid)
{
    new 
string[256];
    
printf("*** IRC_OnConnect: Bot ID %d connected!"botid);
    
// Join the channel
    
if(botid == || botid == 2)
    {
        
IRC_JoinChannel(botidIRC_CHANNEL);
        
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        
IRC_SendRaw(botidstring);
        
IRC_AddToGroup(gGroupIDbotid);
    }
    if(
botid == 3)
    {
        
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        
IRC_SendRaw(botidstring);
        
format(string,sizeof(string),"JOIN %s :%s",IRC_ADMINCHANNEL,IRC_ADMINCHANNEL_PASSWORD);
        
IRC_SendRaw(botidstring);
        
IRC_AddToGroup(gGroupAdminIDbotid);
    }
    
// Add the bot to the group
    
return 1;

but when i try /cs access #igzls add LSCNR 3 it says Channel access lists may only contain registered nicknames.
Reply
#2

any one ?!
Reply
#3

1. don't bump
2. register an account for your bots so you are able to make them login & get their ranks
Reply
#4

You can't just identify without being registered. However, you can do:

Quote:

/msg NickServ help register

to see how to register and then register them
Reply
#5

On IRC,

Change your nick to the bot's nick and type /ns register <password> <email>

pawn Код:
#define IRC_BOT_PASSWORD *bot pass*

public IRC_OnConnect(botid, ip[], port)
{
    format(string,sizeof(string),"PRIVMSG NickServ :IDENTIFY %s",IRC_BOT_PASSWORD);
    IRC_SendRaw(botid, string);
    return 1;
}
Reply
#6

Wrong topic.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)