IRC logging using eggdrop

Setup irc history logging in a few steps.

– Install an IRC server of choice
– Install the eggdrop bot and pisg for generating statistics.
– Install eggdrop module: logs2html

– copy logs2html.so to /usr/lib/eggdrop/modules

– It is ok to create a special user for eggdrop

– After this edit /usr/share/eggdrop/logs2html.conf and chan.list
– Chown these files to eggdrop user
– Also chown /var/www/irclogs to eggdrop user

– First edit configfiles accordingly:

ircbot.conf, some important lines

– Connect to ircbot and run .makemainpage
– logfile jpk #channelname “stats/channelname.log”
– set owner “burdy”
– set realname “I am your autobot”
– set default-port 1234
– source /usr/share/eggdrop/logs2html.conf

pisg.cfg:

– <channel=”#channelname”>
– LogDir=”/home/eggdrop/eggdrop/stats/”
– OutputFile=”/var/www/irclogs/ircstats.html

– From eggdrop user run: ./ircbot.conf and pisg

– Use /usr/share/eggdrop/scripts/botchk to autostart our bot on disconnects,

– Add two lines in crontab.

crontab -e

# m h  dom mon dow   command
MAILTO=burdy
*/5 * * * * /home/eggdrop/eggdrop/botchk
*/10 * * * * /usr/bin/pisg -co /home/eggdrop/eggdrop/pisg.cfg –silent

Some useful lines:

– Auto-op myself
.chattr  burdy +a #channelname

– Set password on channel:
.chanset #channelname chanmode +k password

I needed to save irc logs on a IRC server I was running.

I Installed the eggdrop bot and pisg for generating statistics.
eggdrop module: logs2html (http://sourceforge.net/project/showfiles.php?group_id=144911)
create special user for egddrop
edit /usr/share/eggdrop/logs2html.conf and chan.list
chown these files to eggdrop user
chown /var/www/irclogs to eggdrop user
From eggdrop user run: ./ircbot.conf and pisg
edit configfiles
connect to ircbot and run .makemainpage
Set password on channel:
.chanset #channel chanmode +k password

Leave a Reply

Your email address will not be published. Required fields are marked *

*