How to configure your eggdrop bot

Work in the install dir (~/botdir). Copy the sample, do not edit eggdrop.conf in place:

cp eggdrop.conf botnick.conf

Use nano or vim over SSH. Comment original lines with # and put your values underneath.

Remove die

The sample has two die lines so you cannot start an unedited conf. Delete both or the bot exits immediately.

Identity and bind

set nick "BotNick"
set altnick "BotNick_"
set username "yourshelluser"
set owner "YourNick"
set vhost4 "203.0.113.10"

username is ident. Bind the IPv4/IPv6 you were assigned (set vhost4 / set vhost6). Do not leave the sample nick.

Listen and servers

listen 49152 all
server add irc.example.net:6667
server add irc.example.net:+6697

Pick an unused high port for listen (partyline / botnet). 3333 is usually taken. +6697 is TLS.

Channels

channel add #mychan {
  chanmode "+nt"
}

Keyed (mode +k):

channel add #mychan {
  chanmode "+ntk thekey"
}

Flags worth flipping

  • set learn-users 0 — add people yourself. See security.
  • set protect-telnet 1
  • set require-p 1
  • set stealth-telnets 1
  • set must-be-owner 1 if .tcl / .set are enabled
  • set init-server { putserv "PRIVMSG NickServ :IDENTIFY nick pass" } only if you actually use NickServ on that net

Keep a bot log and a channel log:

logfile mcobxs * "logs/botnick.log"
logfile jkp #mychan "logs/#mychan.log"

After edit

First start is still ./eggdrop -m botnick.conf. Then autobotchk. First start. botchk.

  • 4 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

Setting up an Eggdrop (the short version)

SSH into your KIRE shell. Not telnet. Tcl and OpenSSL are already on the box. Current Eggdrop is...

Getting the Eggdrop Source Code

Get current Eggdrop from the Eggheads project. That is geteggdrop.com or ftp.eggheads.org. The...

Detailed Installation Instructions (Manual Install Method)

SSH into the shell. Tcl and OpenSSL are already there. Current Eggdrop is 1.9 / 1.10 from...

Editing the botchk file to automatically restart your bot

Eggdrop daemonizes. Screen/tmux are for irssi/weechat, not the bot. Persist with crontab via...

Starting your eggdrop bot for the first time

Conf edited, die gone, installed to ~/botdir. SSH in. Do not start this from screen/tmux. First...