Currently, I have 4 bots running on the same machine. They use their own conf files but the conf files are all exactly the same (except for the 4 changes I had to make in each one to change the name of each bot and it's user file, etc.). Is there a way to instead have a master eggdrop.conf file that is loaded for each bot and then I would have a small conf file specifically for each bot that just has the settings for it's name, etc. This would allow me to easily change .conf file settings in just one file -- not 4. Is there something like an include command? Or maybe it could be done through a script? How about editing the actual source files?
Basically, I want 2 conf files loaded for each bot -- the master one and the small one (with the name settings).
Any help/ideas/suggestions would be appreciated.
Thanks,
scr0llwheel
The config file, is infact a Tcl script in itself, in it's simplest form.
The source command is provided by Tcl, and serves the same purposeas "include".
As such, you can have you 4 line config file, then append a simple source line, to load the rest of the repeated stuff.
I use this method for my bots.
I use 4 files for each bot.
1: Contains the server list, so It's dead simple to edit one file.
2: Is the static settings
3: Is the per bot settings like IP, host, nickname botnickname and so on
4: Is a dynamic file. It's a small script, desined to make the userfile, channels and notes filenames, out of the information provided, and converting nasty charcters into ones that can be used for filenames.