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.

about identify

General support and discussion of Eggdrop bots.
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Sir_Fz wrote:How about you load some identification script from the Tcl archive? There are a lot of scripts that will do what you want.

Btw, you don't just add lines to the top of the .conf file. The .conf file is organized for a reason.
I know this, but then what did you say about this:
Linux wrote:Try this if you want to login your nickname via NickServ.
ADD this into your .conf file,

Code:
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putquick "IDENTIFY <nickname> <your-password>"
}


Regards.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Cr4sh wrote:
Sir_Fz wrote:How about you load some identification script from the Tcl archive? There are a lot of scripts that will do what you want.

Btw, you don't just add lines to the top of the .conf file. The .conf file is organized for a reason.
I know this, but then what did you say about this:
Linux wrote:Try this if you want to login your nickname via NickServ.
ADD this into your .conf file,

Code:
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putquick "IDENTIFY <nickname> <your-password>"
}


Regards.
You are getting confused Cr4sh. Ignore all but what Sir_Fz suggested in his (last) post.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Right, thx! :D

Now i've tried to load this script (the first one in the script list):

Code: Select all

###########################################################################################
######                           NickServ & ChanServ Tools                            #####
########################################################################################### 
#
# Autor  : Holger Brähne (Holli)
# E-Mail : hbraehne@web.de
# Version: 1.0
#
# Beschreibung: Das Script Identifiziert den Bot automatisch bei NickServ und lässt den
#               Bot automatisch Op erhalten falls das gewünscht ist und er die benötigten
#               Channelrechte besitzt. Das Script wurde getestet und hat funktioniert.
#               Ich kann allerdings nicht garantieren das es das auf allen IRC Servern
#               tut!
#
###########################################################################################
######                                 KONFIGURATION                                 ######
###########################################################################################

# Der Name den NickServ auf dem IRC Server verwendet auf dem sich der Bot befindet
set nserv(name) "NickServ"

# Der Befehl mit dem man sich bei NickServ identifiziert (normalerweise: IDENTIFY)
set nserv(idnt) "IDENTIFY"

# Der Name den der Bot verwendet. Wichtig falls jemand den Namen geklaut hat und der Bot
# in den GHOST Modus gehen soll um ihn zurück zu erhalten.
set nserv(nick) "botnick"

# Das Passwort mit dem der Bot bei NickServ registriert ist.
set nserv(pass) "password"

# Die Zeit die der Bot zwischen dem erkennen von NickServ und der Identifizierung warten
# soll. Bei mir haben 10 Sekunden immer gereicht, aber es soll ja auch langsamere Server
# geben ;)
set nserv(time) 10

# Der Name den ChanServ auf dem IRC Server verwendet auf dem sich der Bot befindet
set cserv(name) "ChanServ"

# Soll der Bot sich automatisch Op im unten angegebenen Channel holen?
# 0 = nein / 1 = ja
set cserv(opme) 1

# Der Channel in dem sich der Bot Op holen soll.
set cserv(chan) "#mainchannel"

# Siehe nserv(time). Die Zeit hier sollte aber mindestens 5 Sekunden länger angegeben sein!
set cserv(time) 15


###########################################################################################
######  !!! AB HIER NICHTS MEHR ÄNDERN, AUSSER DU WEISST GENAU WAS DU DA MACHST !!!  ######
###########################################################################################

bind notc - "*msg*IDENTIFY*pass*" nick_ident
bind dcc o nservid nick_ident

proc nick_ident {nick uhost hand args} {

  global botnick nserv cserv
  
  if {$botnick == $nserv(nick)} {
  
    utimer $nserv(time) "putserv \"PRIVMSG $nserv(name) :$nserv(idnt) $nserv(pass)\""
    
    if {$cserv(opme) == 1} {
    
      utimer $cserv(time) "putserv \"PRIVMSG $cserv(name) :OP $cserv(chan)\""
    
    }
  
  } else {
  
    utimer $nserv(time) "putserv \"PRIVMSG $nserv(name) :GHOST $nserv(nick) $nserv(pass)\""
  
  }

}
...the result it's the same...bot don't identify itself. :cry:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Then try another script. I use chanservneed by De Kus, give it a try.
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

It's ok!!
Thank you very much.
To the next help...bye
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

@cr4sh: Which irc server are you trying to identify on? Here's an example for undernet (this goes in your eggdrop.conf, make sure there are no other proc evnt:init_server entries in your conf.)

Code: Select all

bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +ix-ws"
  putquick "PRIVMSG X@channels.undernet.org :login botname botpassword"
}
If its a server that uses nickserv, change the privmsg line to:
putquick "PRIVMSG nickserv :identify botpassword"

or possibly:
putquick "ns identify botpassword"

Some servers use the command "ns" to talk to nickserv, instead of /msg nickserv.

You're basically issuing the same commands you do for yourself when you identify manually. Make sure your bot isn't ignoring nickserv and services in general when you connect, sometimes it will ignore them for flooding. Add nickserv and chanserv to your bot's userlist, give them the +f flag, and make sure they're not being ignored (if you're not seeing any replies from nickserv, then your bot is ignoring it or you don't have the right flags set on your dcc console to be able to see them. Check your .ignore list and check your console settings.)

And, yeah chanservneed is a very good script, I use that one too.
Post Reply