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.

Sending info from one bot to the other

Old posts that have not been replied to for several years.
B
Buffy_25
Halfop
Posts: 63
Joined: Sat Nov 22, 2003 6:36 am

Post by Buffy_25 »

Anyone please?

Thnx.

Buffy
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Buffy_25 wrote:Is this correct?

If i have for example a $nick that exist in my botlist with "Blargo"...and he connects with BlargoZZZ or Blargo_Zzz or Blargo[A] or [A]Blargo, how can i tell my script that that person already has a handle on my bot?

Thnx.

Buffy
read the tcl-commands.doc located in your ~doc directory for the commands validuser and nick2hand...
another way to add your bot's various nicks... your conf file is essentially a giant tcl, so you can set whatever variables that you want...including multiple botnicks. for example:

Code: Select all

set mybotnick1 "BlargoZZZ"
set mybotnick2 "Blargo_Zzz"
set mybotnick3 "Blargo[A]"
or better yet, build yourself an array, which is easier to call in procedures. Hope this helps :wink:
B
Buffy_25
Halfop
Posts: 63
Joined: Sat Nov 22, 2003 6:36 am

Post by Buffy_25 »

Hi YooHoo,
In fact i would like to recongize the users joining (not my bot's nick).
So how can i make my script recognize if the users that are joining with a nick (that looks like their handle on my bot i.e. Blargo and he joins with Blargo_zzz) and don't add him additionally with that X_zzz handle or any similar nick -> [A] , _Zzz , _away , ... ?

Btw,
following user 's above comment on the time that a user is already connected, i have the following question:
Let's say bot1 is connected. When bot2 connects, he will get from bot1 all the time's from the nicks (handles) online at that moment with their connected time

Code: Select all

duration [expr {[clock seconds]-[getuser $hand XTRA whatever]}]
Now my question is:
When the connected nick(s) disconnect, how can i make bot2 calculate the total online time from the nicks? -> so the uptime before bot2 was connected + the uptime when bot2 was online (till nick disconnects) ?
Bot1 can continue to find the duration by using the above script, but i suppose bot2 will need some more calculations...

I'm kind of frustrated to make this work? Or find a way to make it work?

Anyone can put me on the right way? Any comments/remarks/ideas are more then welcome :roll:

See you later.

Buffy
B
Buffy_25
Halfop
Posts: 63
Joined: Sat Nov 22, 2003 6:36 am

Post by Buffy_25 »

Same here !
Sorry...clicked several times on submit. Deleted the same msg...

Buffy
Locked