Gentoo Wiki ArchivesGentoo Wiki

HOWTO_Eggdrop


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

Installation

emerge eggdrop

Note that eggdrop requires Tcl to run.

Add an eggdrop to your user

eggdrop-installer <botnick>

Where <botnick> is the nick you want to give to your eggdrop. This command will create a ~/.eggdrop/<botnick> folder, where some binary files and such are symlinked to the /opt/eggdrop/* files.

Configuration

Edit this config file and save it.

File:
#!/opt/eggdrop/eggdrop 
# ^- set that to where the eggdrop bin is.

# Important : Set the bot nick
set nick "nickbot"
# The altnick
set altnick "nickbot_"
# The username of the bot
set username "nickbotuser"

# The RealName :
set realname "Bot of the owner"

# what IRC network are you on?  this is just info to share with others on
# your botnet, for human curiosity only.
set network "I.didnt.edit.my.config.file.net"

# in 'eggdrop.log' put private msgs/ctcps, commands, misc info, and
# errors from any channel:
logfile mco * "eggdrop.log"
# in 'lame.log' put joins, parts, kicks, bans, and mode changes from
#lamest:
logfile jk #lamest "lamest.log"

#Here you need to change #lamest to whatever channel your bot is going to be on. You can also rename "lamest.log" to "channelname.log"

# if compiled with owner, the following user(s) will ALWAYS have the
# owner (+n) flag (You really should change this default)
set owner "MrLame, MrsLame"

# the server list -- the bot will start at the first server listed, and cycle
# through them whenever it's disconnected
# (please note: you need to change these servers to YOUR network's servers)
set servers {
  you.need.to.change.this:6667
}

Config information from here

Then chmod the file with 755 like this.

chmod 755 eggdrop.conf
####################################################################################
####                 Or You can use this simples config                         ####
####################################################################################

#########################
# Configuration Eggdrop #
#########################

set admin "Your Nick"
set owner "Your Nick"
set nick "Nick Bot"
set altnick "Second Nick Bot"
set username "UserName"
set realname "Real Name Stealth Robotic"
addlang "english"
set servers { irc.fastland.org:6667 } ##Set Your Server Irc ;)
set net-type 5
set timezone "GMT"
set offset "5"

#####################
# Modules & Options #
#####################

set init-server { putserv "MODE $botnick +i-ws" }

bind dcc n tcl *dcc:tcl
set must-be-owner 0
set mod-path "modules/"
loadmodule channels
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule console
checkmodule blowfish
set require-p 1
set network "Fastland"
logfile msbcox * "logs/$nick.log"
set userfile "$nick.user"
set chanfile "$nick.chan"
set pidfile "$nick.pid"
set sort-users 1
set my-ip "" ##Set your ip, if you configure with Iptables or leave
listen 3337 all ##Port, change this if you use.
set help-path "help/"
set temp-path "/tmp/"
set motd "$nick.motd"
set telnet-banner "$nick.telnet"
set quiet-save 1
set console "jkmcobxs"
set strict-servernames 0
set ctcp-mode 0
set notefile "$nick.notes"
set global-flood-chan 30:5
set global-flood-deop 30:5
set global-flood-kick 30:5
set global-flood-join 30:5
set global-flood-ctcp 30:5
set global-flood-nick 30:5
set global-aop-delay 30:5
set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 0
set global-chanset {
        -autoop         -autovoice
        -bitch          +cycle
        +dontkickops    +dynamicbans
        +dynamicexempts +dynamicinvites
        -enforcebans    +greet
        -inactive       +nodesynch
        -protectfriends -protectops
        -revenge        -revengebot
        +secret         -seen
        +shared         +statuslog
        +userbans       +userexempts
        +userinvites
}

channel add #Channel { ##Set Your Channel
        chanmode "+nt"
        idle-kick 0
        flood-chan 0:0
        flood-deop 3:10
        flood-kick 3:10
        flood-join 0:0
        flood-ctcp 3:60
}

###############
# Modules TCL #
###############

source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
source scripts/SCRIPT1.tcl
source scripts/SCRIPT2.tcl 

############################################################################
## Config Powered by Steatlh EU Robotic .. info stealth@fastland.org or   ##
## IRC irc.fastland.org #fastweb >> Link www.fastland.org                 ##
############################################################################

Config information from here

Then chmod the file with 755 like this.

chmod 755 eggdrop.conf

Start your bot

The first time

For your first start of eggdrop, the user file needs to be created. Run:

./eggdrop -m eggdrop.conf

Eggdrop will then ask you to log into the IRC server of the bot and msg it, in order to identify yourself as the owner of the bot.

When connected type:

/msg nick-of-the-bot hello (you should get a notice from the bot)

then type:

/msg nick-of-thebot pass password

After this, open a DCC Chat with the bot (/dcc chat nick-of-the-bot) and type .save

From this time on you don't need to use the -m option when starting it, as the user file has been created.

The next times

From now on you can start eggdrop by simply running the config file:

./eggdrop name-of-the-config.conf

And if every thing goes well it will start up.

More Information

For more information on Eggdrop, visit its official website at www.eggheads.org :

Another great site for help with Eggdrop is www.egghelp.org :

Retrieved from "http://www.gentoo-wiki.info/Eggdrop"

Last modified: Wed, 13 Aug 2008 05:28:00 +1000 Hits: 23,956

Created by NickStallman.net, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.