egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

One Eggdrop Bot and more than one channels

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
ithiria
Voice


Joined: 15 Aug 2007
Posts: 2

PostPosted: Wed Aug 15, 2007 9:47 am    Post subject: One Eggdrop Bot and more than one channels Reply with quote

Hello,
I just set up eggdrop successfully - everything works - yippie!!!

Now, I did add another channel (channel add + channel set).

My Botīs nick is: MyBot
My Botīs "backup" nick: _MyBot

Here the problem occured:

In the first channel, now there are 2 bots, MyBot AND _MyBot, in the second channel there is only _MyBot

Question:
How can I make that one Bot is available on several channels? Or do I need another Bot for more than one channel?

Thanks in advance.

Regards!
Back to top
View user's profile Send private message
pitbull
Voice


Joined: 12 Aug 2007
Posts: 13

PostPosted: Wed Aug 15, 2007 10:02 am    Post subject: Reply with quote

It seems what you did was you edited the config file, to add another channel, and then you ./eggdrop MyBot.conf to start it again.. If you type "ps x" at the shell prompt, (without the quotes) you will see something similar to the following:

Quote:
[peakoil@peakoilchat eggdrop]$ ps x
PID TTY STAT TIME COMMAND
16160 ? S 0:33 ./eggdrop opec.conf
29866 pts/3 S 0:00 bash
29881 pts/3 R+ 0:00 ps x


If you see two lines with ./eggdrop in it, that means you have your bot running twice. To end the processes of the bots type "kill -9 PIDNUMBER", replacing PIDNUMBER with the number you see at the left hand side of the screen, beside the ./eggdrop line. In my case, it would be "kill -9 16160". When you kill the process, the bot will drop off line. You will then need to restart your bot, but only do it once this time. (Another way, possibly easier for you, is to connect to the party line and simply type .die)

*Edit: You only need to do this if you have 2 instances of your bot running.. It would look something like this:
Quote:
[peakoil@peakoilchat eggdrop]$ ps x
PID TTY STAT TIME COMMAND
16160 ? S 0:33 ./eggdrop opec.conf
25560 ? S 0:33 ./eggdrop opec.conf
29866 pts/3 S 0:00 bash
29881 pts/3 R+ 0:00 ps x


Now, to answer your question, you only need one eggdrop, you can make it join multiple channels. I'm not aware of any limit to how many channels a bot can sit on either. You can easily add channels by connecting to the bot's partyline, and typing ".+chan #newchannel" to make it join a new channel, and to leave a channel, type ".-chan #oldchannel"
_________________
irc://irc.efnet.net/peakoil
Back to top
View user's profile Send private message
ithiria
Voice


Joined: 15 Aug 2007
Posts: 2

PostPosted: Wed Aug 15, 2007 1:50 pm    Post subject: Reply with quote

pitbull, thanks a lot. this was amazing, now it runs perfectly!!!!

Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber