setting up IRC eggdrop bot
http://ubuntuforums.org/showthread.php?t=1028042
or follow below
I needed to setup an IRC channel bot and battled with it for almost a week. Finally I've done it and am pleased to share this hassle-free tutorial with the Ubuntu community.
What this will do for you:
1. Setup an IRC channel of your choice
2. Keep a bot nickname of your choice in the channel to keep it alive
Tutorial begins here:
1. First install eggdrop using apt-get or synaptic if you prefer that:
Code:
sudo apt-get install eggdrop
Code:
cd ~ wget http://www.egghelp.org/files/conf/simple.conf.gz gunzip simple.conf.gz
Code:
nano simple.conf
Code:
set username "user"
If you still need help with a particular line in the simple.conf file, please ask here and I'll try to answer.
5. For some reason, I could get eggdrop to work only from /usr/lib/eggdrop directory, and only as a regular user (sudo will not work). So let's make the eggdrop directory writable first:
Code:
sudo chmod 777 /usr/lib/eggdrop -R
6. Now let's run eggdrop for the first time using the simple.conf file.
Code:
/usr/lib/eggdrop -m ~/simple.conf
7. in the IRC channel, you will also be given instructions to prove your ownership of the bot. By default, you can send HELLO as a private message to the bot and it'll recognize your ownership. Remember to login to IRC using the same nickname as you defined in the simple.conf file in the bot owner section.
Code:
/msg yourbotname HELLO
8. Now let's set this bot to start with the Ubuntu startup.
First make a shell script that starts eggdrop with your conf file:
Code:
sudo nano /etc/init.d/eggbot
Code:
#!/bin/sh Echo "Starting Eggdrop IRC bot..." cd /usr/lib/eggdrop sudo -u username eggdrop /home/username/simple.conf
Press ctrl+O to write the file, and then ctrl+X to exit the text editor.
9. Now let's make the file executable.
Code:
sudo chmod a+x /etc/init.d/eggbot
Code:
sudo update-rc.d eggbot defaults
If you're like me (and don't know much about Linux) you want to restart your computer to see if it actually works. Always check the IRC channel to see if the bot showed up there.
If you can contribute anything to this thread, or want to ask any questions, go ahead.
No comments:
Post a Comment