BaroqueW

BaroqueW

and his sidekick nikkitaa

BaroqueW RSS Feed
 
 
 
 

Autoregistration to Nickserv for your eggdrop bot

I guess when people set a bot for themselves, to use on IRC, they want it to identify its name, especially when it ends up managing a channel. Here is how to configure this (somewhat summarily, but at least you don’t have to install a script) for your eggdrop.

Edit eggdrop.conf to look like below, set nick “Mybot” and other lines are already present but at least you see where to add the lines:

# Set the nick the bot uses on IRC, and on the botnet unless you specify a
# separate botnet-nick, here.
set nick "Mybot"
set identpass "mypass"   # set the variables used to register (identpass, nickserv, identcmd)
set nickserv "NickServ@services.dal.net"   # It is safer to use the full nickserv identifier, not jut "nickserv"
set identcmd "IDENTIFY"

# Set the alternative nick which the bot uses on IRC if the nick specified
# by ’set nick’ is unavailable. All ‘?’ characters will be replaced by random
# numbers.
set altnick "MybotX?"

# Set what should be displayed in the real-name field for the bot on IRC.
# This can not be blank, it has to contain something.
set realname "It’s my bot"

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt – init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick nickserv identcmd identpass # don’t forget to tell the script to use the global variables we defined above
  putquick "MODE $botnick +i-ws"
  putquick "PRIVMSG $nickserv :$identcmd $identpass"  # we will identify on connect
}

# All this is new
# Upon receiving "*This nickname is owned by someone else.*", we will try to identify
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)"
       }
       }

  • Share/Save/Bookmark

Related posts


2 Responses to “Autoregistration to Nickserv for your eggdrop bot”

  1. 1
    Pett:

    Hello,
    I have already seen it somethere…

    Have a nice day
    Pett

  2. 2
    KattyBlackyard:

    Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting

Leave a Reply

Status

  • BaroqueW sorting the first pictures
    7 hours ago
  • BaroqueW holy cow
    10 hours ago
  • BaroqueW ecoute desproges dans les fjords
    2 days ago
  • BaroqueW : it is in fact NOT funny to point people in the wrong direction when they're lost
    2 days ago

Popular posts

My Social Networks

DandyID 43 Things Clipmarks coComment Dailymotion Delicious deviantART Digg Diigo Facebook Flickr Get Satisfaction Guitar Hero HelloTxt Hulu ICQ Imdb Imeem Kiva last.fm Linkedin Netvibes orkut PeoplePond Picasa Plaxo PostCrossing RockBand Scribd Stumbleupon Tagged TripAdvisor Twitpic Twitter Xbox LIVE YouTube

Expand the experience

Blogroll

Internet Map

Meta