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.

How to update the config-file

General support and discussion of Eggdrop bots.
Post Reply
T
The Void
Voice
Posts: 3
Joined: Thu Jul 19, 2007 7:53 am

How to update the config-file

Post by The Void »

Hi,

I have searched 4 days for how to update my EggDrop-config file, without having to delete everything on my shell-hosting and reinstall EggDrop with the new conf-file.
But found nothing, not even on this forum.

So can please someone explain me how to do this.

I'm a beginner, so my conf-file was not set up right from the first time.
Each time i have to change something in my conf-file, i kill the eggdrop-proces on my shell-hosting, delete all the files with FTP and restart the installation of EggDrop (with the new conf-file).

Is there a better way to update my config-file, without having to re-install EggDrop and certainly without loosing saved stuff...

For example when i change a setting in the .conf or when i add a new tcl-script in the conf-file.

Thank you in advance!!!


PS: When in the future, i mean when people will be on my IRC-channel, i want to update the script the way you will explain me, i suppose my Bot will restart, will it still be Operator when rejoining the channel?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Simply, open your configfile in your favourite (plaintext) editor, do the changes, save and exit your editor.

If you edited it "off-shell", use your favourite ftp-client, scp-client, or any other means to transfer the edited configfile to your shell.

Next, simply .rehash or .restart your bot.

Same goes for scripts...

As for your last question, doing a .restart will pretty much have the same effect as killing the bot and starting it all over, which will result in your bot disconnecting from the server and thus loose ops in the channel. .rehash will only reread the configfile, and as long as there are no errors within the configfile or loaded scripts, it should remain connected.
NML_375
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You don't need to kill the Eggdrop process, delete all files and then run again. A simple .rehash is enough (or .restart in some cases).
T
The Void
Voice
Posts: 3
Joined: Thu Jul 19, 2007 7:53 am

Post by The Void »

Am I right?

.rehash is for reloading configs, without that the bots leaves the channel
.restart makes bot leave and restart and join the channel again


With .restart, when people or on my channel, what will happen?
Will someone take over the channel?
Or does it kick all users, or what?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

With restart, it will simly disconnect, do the restart, and then reconnect to the server and try to join the channel again.

What will happen with the channel depends on who's opped at the time, and what various features are available on the irc-network you're using (ie. DalNet has ChanServ, Quakenet has X, IrcNet supports reop-modes).

But pretty much, if you (or someone you trust) is'nt around to hold ops while the bot restarts, there is a risk you might loose the channel (except if you've registered the channel with ChanServ or X or such)...
NML_375
T
The Void
Voice
Posts: 3
Joined: Thu Jul 19, 2007 7:53 am

Post by The Void »

So the trick is to do .restart in the DCC chat while i'm opped myself and wait till the bot has returned the channel?

I'll try that before i make my channel public.

Thanks!
Post Reply