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.

botrequest and adding botlist

Old posts that have not been replied to for several years.
Locked
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

botrequest and adding botlist

Post by LiquidIce »

i have a add command where ppl can see what bots i have for usage

botrequest script i was wondering if i could use same file
# bot nicknames you wanna give out
set botnicks "botname here"


# File is the place where the data will be save add for botlist

set botlistfile "/home/user/bot/listbots.txt

i tryed using to use it from there but it wont work. how can i get the botnicknames to read from a txt instead of editing the config all the time. whenever i make a new bot
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: botrequest and adding botlist

Post by YooHoo »

LiquidIce wrote:i have a add command where ppl can see what bots i have for usage

botrequest script i was wondering if i could use same file
# bot nicknames you wanna give out
set botnicks "botname here"

# File is the place where the data will be save add for botlist
set botlistfile "/home/user/bot/listbots.txt

i tryed using to use it from there but it wont work. how can i get the botnicknames to read from a txt instead of editing the config all the time. whenever i make a new bot
retrieving a item from a list is simple enough to do (read all about the list command here), although to perform this event, it would probably be more efficient to write a new procedure using bind bot instead.
So, with that said, if you still wish to continue to make/develop this tcl, you might wanna check your list syntax...such as:

Code: Select all

set botlist "bot1 bot2 bot3"
set botlistfile "listbots.dat"
. MC_8 has an excellent public commands tcl that could be altered quite easily to accomodate this, and just about any other, command. read all about it here.
Locked