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.

Wondering about botrequest

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

Wondering about botrequest

Post by LiquidIce »

Is it poissble for a eggdrop to use
set botnicks "gamebot-XX"

xx- bot number

gamebot-1
gamebot-2
and so on instead of having it read 30 botnames?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes, see the .conf file for 'set nick'.

The character "?" replaces any /[0-9/] number.
For your demonstration:

set nick "gamebot-??"

Everytime the bot connects to a server, the last to "?" would be replaced by random numbers in between 0-9.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

awyeah, read the subject and its text :p

He's asking if he can use something so it detects his bot rather than change his name on connect
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I do beleive I didn't totally understood what he mean't.
He's asking if he can use something so it detects his bot rather than change his name on connect.
Use something so his bot detects? detects? detects what? What's this got todo with the changing of a name?
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

Bot request ill have like 20 bots named CUG-1 through CUG-20

Can i do this :
# bot nicknames you wanna give out
set botnicks "CUG-??" << use it for all bot names starting with that. the ?? be numbers

instead of using:
# bot nicknames you wanna give out
set botnicks "[CUG]-1, [CUG]-2, etc.. "
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Using botnick-?? will give your bot botnick-19 for instance it just picks a number at random as awyeah said. It wont be sequential tho as in if botnick-01 is taken it wont try botnick-02 unless your extremely lucky and the random number just happens to be 02 :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yep. Using botnick-?? will give integers from 00-99 randomly.

VIA TCL: If you want you can create a small loop and incr 1 each time the loop ends then change the botnick or store them in global variables for use.

Like use a do, while loop.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked