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 set nb_set (bot) (setting) (value)

Old posts that have not been replied to for several years.
Locked
L
LifeAdeth

Post by LifeAdeth »

I am trying to limit the number of components my hub bot is running. I added the line... set nb_set hubbot chanlimit 0 to my netset.tcl and i get this error when i rehash...wrong # args: should be "set varName ?newValue?". How to I properly set the nb_set so that my hubbot will not load that component but all the other bots linked to the hub will.(remember the hubbot controles all the configs and tcl's for all the leafbots).
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

set nb_set hubbot chanlimit 0
nb_set is a command, not a variable, so there is no need to have set there.

Just use
nb_set hubbot chanlimit 0
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

It should look more like this:

set nb_component(chanlimit) 1
nb_set hubbot nb_component(chanlimit) 0
L
LifeAdeth

Post by LifeAdeth »

Thanks slennox!!!!!
that worked..

muahahahah
Locked