This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Bot auto IDENTIFY password's Botnick when come on IRC !

Old posts that have not been replied to for several years.
Locked
d
duyminh

Bot auto IDENTIFY password's Botnick when come on IRC !

Post by duyminh »

Pls help me how to config the config file to Bot can auto IDENTIFY when come on IRC :-?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Look for a scritp designed to do this in the tcl archive on the main egghelp website.
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

Reading the config file will reveal that there are 2 possbile ways to do that without using a script.

1) server list accepts lines like:

servername:port:pass

There you can setup your pass

2) set init-server {some procedure here}

That is a TCL command or a procedure that will be executed upon succesfull connection to server, you can have something like:

set init-server {putserv "PRIVMSG NickServ!services@my.blah.net :IDENTIFY blah"}

On the other hand, if services are restarted during your time online, or there is a netsplit or something of the sort, you will become not identified. That's why ppslim suggested the TCL script. But in case you are on the network that you couldnt find script for, then use one of the before mentioned methods.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
d
duyminh

Post by duyminh »

I try this line in my config file. But it doesn't work out :

set init-server { putserv PRIVMSG "NickServ :IDENTIFY password" }

I use my bot on IRC server with command IDENTIFY nickname is :
/msg IDENTIFY password

Any suggestion with me pls ! thanks and more thanksssss ...
s
spyda
Halfop
Posts: 64
Joined: Mon Aug 12, 2002 2:22 am
Location: Australia

Post by spyda »

This is a little script that i made up about a year ago... Hope it helps you

Code: Select all

set asus(nick) "nickop@austnet.org"
set asus(pass) "password"

bind EVNT - connect-server asus_connect

proc asus_connect {connect} {
 global asus
  puthelp "PRIVMSG $asus(nick) :$asus(pass)"
  putlog "Identifying to Services"
}
Hope that helps you out..

----------
ThePope
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

That's cause you put your quotes (") after the IRC command PRIVMSG instead of before as i wrote.
Read my earlier post again.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
t
tradergt

Post by tradergt »

problem with these is when services lag, you won't ever get your bot to identify.. It should be triggered off nickserv.. plus, splits CAN cause your nick to loose identify, I have seen it, then your bot is never identified then either till you do it manually...


Event drivin is always best.. thats how mine works..
d
duyminh

Post by duyminh »

I config my eggdrop use this TCL script to auto identify but it's doesn't work out too :( :

#file identify.tcl
set identcmd "identify"
set identpass "xenogear0129380064"
set nickserv "NickServ"
bind notc - "*This nickname is owned by someone else.*" identify:notc
proc identify:notc { nick uhost handle text dest } {
global botnick nickserv identcmd identpass
if { $nick == $nickserv } {
puthelp "PRIVMSG $nickserv $identcmd $identpass"
putlog "Identifying : $nickserv (as $botnick)"
}
}

And I insert this line to my config file :

source scripts/identify.tcl

Please help me this problem !!! ..thanksssssssssssssssssssssss
t
tradergt

Post by tradergt »

this is what I use for dal, it can be changed for another network I am sure

Code: Select all

#############################################################################################
##################### Identify Script for Eggdrop 1.3.x, 1.4.x, 1.5.x #######################
#############################################################################################


################################# HOW TO INSTALL #######################################
# Just type in the Settings and add Nickserv as a user in the userlist with the right host
# and give him the flag "I".. and you're done :)
########################################################################################



####### SETTINGS ########
set botnick_pass "pass"
set bot_nick "LamBot"
set nickserv_nick "NickServ"
set chanserv "chanserv@services.dal.net"
#########################


###############################################################################
set keep-nick 1
bind notc - "*you*nick*" nick_in_use
bind notc - "*nick*use*" nick_in_use
bind notc - "*ill*nick*" nick_in_use
bind notc - "*msg*IDENTIFY*pass*" identify_to_nickserv
bind notc - "*Password accepted for*" op_chanserv


proc nick_in_use { nick uhost hand args rest } {
    global botnick botnick_pass bot_nick nickserv_nick
     if { $botnick != "$bot_nick" } {
      putserv "$nickserv_nick :ghost $bot_nick $botnick_pass"
      putlog "Nick \002\[$bot_nick\]\002 is in use... Ghosting..."
      }
}

proc identify_to_nickserv { nick uhost hand args rest } { 
 global botnick botnick_pass bot_nick nickserv_nick
  if { $botnick == "$bot_nick" } {
   putquick "$nickserv_nick :identify $botnick_pass"
   putlog "Identifying for nick \002\[$bot_nick\]\002"
  } else {
   putlog "The nick \002\[$botnick\]\002 is not the nick specified in identify.tcl"
  }
}

proc op_chanserv { nick uhost hand args } {
   global botnick chanserv channame
     putlog "\002Catched Notice\002 from \002$chanserv\002"
     foreach channame [channels] {
       putserv "PRIVMSG $chanserv :OP $channame $botnick" 
       putlog "\002Trying to gain ops\002 in \002$channame\002 from \002$chanserv\002"
     }
}


bind dcc o identify manual_identify

proc manual_identify { hand idx mascara } {
 global nickserv_nick botnick_pass bot_nick
 putserv "$nickserv_nick :identify $botnick_pass"   
 putlog "Identifying manualy for nick \002\[$bot_nick\]\002"
}
#######################################################################################
putlog "NickServ Identify Script by DrLinux - Loaded."
s
sys
Voice
Posts: 19
Joined: Mon Sep 24, 2001 8:00 pm
Location: Middle East

Post by sys »

put this in bot config file.
on connect it will auto identify to nickserv.
set init-server { putserv "PRIVMSG NickServ :IDENTIFY password }
for dalnet:
set init-server { putserv "PRIVMSG nickserv@services.dal.net :IDENTIFY password }
d
duyminh

Post by duyminh »

Can I use TCL script auto IDENTIFY without .adduser NickServ to Userlist of my eggdrop Bot ??????

I try .adduser NickServ then I pico -w mybot.user, But I can't see NickServ in user list !! only my nick in Userlist as Owner :(

I'm beginner ! pls help me !! thank you very much !!! My Bot is joining IRC successful !! But I cann't control it as made it IDENTIFY with NickServ
Locked