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.

simple config question..

Old posts that have not been replied to for several years.
Locked
d
dehd

Post by dehd »

new to egg's, using simple config
have a small dilema in adding chans to my bot.. i see that in the config file there is #lamest already set. i went and replicated that section twice, and edited it to be my channels. i went and pico'd into my user.chan file, and noticed that the 3 chans in config, are set as " channel set " and the recently " .+chan #example " is set as " channel add " . my question is, what is the best wat to add permenant chans to my bot? what if the channel needs a key to enter? thasnks for any help

m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Hi dehd

Well there are two ways of adding channels to bot's records.
One way is trough config file (those are called static channels, they can't be removed with .-chan) and the other way is to add them trought the bot's partyline (those are called dynamic channels and can be removed from partyline). It's not necesary to add a channel in config file! You can do it from partyline (after you introduce yourself, set your password).
It's up to you to decide where (how) you want to add the channels. But remember that for both types of channels you need to change setting from the partyline, not in the config file, as the channel file has higher priority then config file.
MaSsKilla

#eggdrop
Undernet
d
dehd

Post by dehd »

thanks mass.
i am trying to do as much as i can thru the partyline. but i want to learn the msg commands as well. i'll probably end up editing my config file back to the single channel... actually question, can i not have a channel set in the config? since i added them other chans via the config, i am always getting mode changes, but it only is showing the 1st channel of the config file. and all 3 channels have tons of mode changes. so if it's possible for me to remove all the channels from config, and do them thru the partyline as .+chan , i'll do that. what about adding a key'd channel? how would i go about that. thanks for the help.
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Hi dehd

Yes it's possible to not have any channel set in the config file, actually I never set it in the config file becouse you can't remove it via partyline (with .-chan) so you gotta edit the config file etc. But I'm affraid you'll lose all the channel flags fot those channels so you'll have to re-add them.

As to adding a key channel (or setting it keyed) read up on .chaninfo and .chanset (the part you're interested is chanmode). Or you could use need-key if you only need to enter the channel if it's keyed (not keep the channel keyed). The syntax for need-key would be like: .chanset #channel need-key putserv "JOIN #channel key" (I think that's the syntax.. check the config file about it).

p.s.
If you plan to switch those static channels to dynamic, try backing up your user file, then removing the channel from config file, rehash the bot, add the channel with .+chan then replace the current user file with the backed up one (back up the current one as well, just in case). I haven't tried/tested it so it's kind of a long shot, but it's worth a try.. it'll spare you from re-adding those flags again if you have many users.



_________________
MaSsKilla

#eggdrop
Undernet

<font size=-1>[ This Message was edited by: masskilla on 2002-01-07 02:30 ]</font>
Locked