This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggy part from channel when restarting - how to prevent?

Old posts that have not been replied to for several years.
Locked
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Eggy part from channel when restarting - how to prevent?

Post by dwickie »

eggdrop parts from all channels, when restarting. (first part and then quit from irc)
does anybody know, how to prevent this? (script/source code change/...)
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

you cannot. either you rehash the bot without parting or you restart it from scratch.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

De Kus wrote:you cannot. either you rehash the bot without parting or you restart it from scratch.
no i can't belive this. in /src must be somewhere some restart procedure where is programed this parting from channels :/
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

if you remove the parting the bot will leave the channels with a quit message, do you like that? in a restart the bot will completly be reset, this includes (but is not limited to) closing all ports.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Code: Select all

.rehash
This was built into eggdrop so you can script and make code changes without making the bot leave all the channels and stay online. The only time you have to restart is if you need to remove any old binds that the bot has in its binds list or to close ports as De Kus mentioned above.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

De Kus wrote:if you remove the parting the bot will leave the channels with a quit message, do you like that? in a restart the bot will completly be reset, this includes (but is not limited to) closing all ports.
yes i want this. i want eggdrop simply quit from irc. why? iam trying to connect through psybnc and when eggdrop simply quit without parting, psybnc will stay on channel. dunno how it will be working, but first i need to disable this parting.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

If you want your eggdrop to just quit type

Code: Select all

.die
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

sometimes i need restart (not rehash and not loggining to shell and starting eggdrop again)

is there any chance to run .die and immediatly exec botchk to run eggdrop again?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Theres no way to exec botchk immediately without a bash script looking for it to die. The fastest conventional way is to setup autobotchk (Crontab) to check it every minute. A minute is the smallest time limit allowed by crontab.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

if you dont mind employing a tcl script, something like this would work

bind evnt - prerestart {clearqueue all;putquick QUIT;#}
photon?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

you cannot start a bash srcipt after the bot died, but you could call a bash script, that sends the SIGTERM to the bot, waits a bit and maybe calls botchk every second until the pid file is recreated or something like that.

other way: you use putquick quit to the server, wait a utimer 1 and restart the bot.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Just out of interest why do you need the bot to quit and rejoin the bnc?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

spock wrote:if you dont mind employing a tcl script, something like this would work

bind evnt - prerestart {clearqueue all;putquick QUIT;#}
oh thanks,

Code: Select all

.tcl clearqueue all;putquick QUIT;restart;#
this works perfectly

why i need this? i want to have bot still online on channel (even when eggdrop is down, or restarting) so i use bouncer and that solves all my problems
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

if you bind it to the prerestart event a regular .restart is sufficient (incase you didnt get that :) )
photon?
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

spock wrote:if you bind it to the prerestart event a regular .restart is sufficient (incase you didnt get that :) )
yeh i noticed that. thank you again ;) you helped me really much :)
Locked