<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7930" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-09-26T09:03:10-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7930</id>

		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-09-26T09:03:10-04:00</updated>

		<published>2004-09-26T09:03:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41266#p41266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41266#p41266"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41266#p41266"><![CDATA[
Same here !<br>Sorry...clicked several times on submit. Deleted the same msg...<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sun Sep 26, 2004 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-09-26T09:02:12-04:00</updated>

		<published>2004-09-26T09:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41264#p41264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41264#p41264"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41264#p41264"><![CDATA[
Hi YooHoo,<br>In fact i would like to recongize the users joining (not my bot's nick).<br>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 -&gt; [A] , _Zzz , _away , ... ?<br><br>Btw,<br>following <strong class="text-strong">user</strong> 's above comment on the time that a user is already connected, i have the following question:<br>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<div class="codebox"><p>Code: </p><pre><code>duration [expr {[clock seconds]-[getuser $hand XTRA whatever]}]</code></pre></div>Now my question is:<br>When the connected nick(s) disconnect, how can i make bot2 calculate the total online time from the nicks? -&gt; so the uptime before bot2 was connected + the uptime when bot2 was online (till nick disconnects) ?<br>Bot1 can continue to find the duration by using the above script, but i suppose bot2 will need some more calculations...<br><br>I'm kind of frustrated to make this work? Or find a way to make it work?<br><br>Anyone can put me on the right way? Any comments/remarks/ideas are more then welcome  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>See you later.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sun Sep 26, 2004 9:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-19T13:14:49-04:00</updated>

		<published>2004-09-19T13:14:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41016#p41016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41016#p41016"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41016#p41016"><![CDATA[
<blockquote class="uncited"><div>Is this correct?<br><br>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?<br><br>Thnx.<br><br>Buffy</div></blockquote>read the tcl-commands.doc located in your ~doc directory for the commands <strong class="text-strong">validuser</strong> and <strong class="text-strong">nick2hand</strong>...<br>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:<div class="codebox"><p>Code: </p><pre><code>set mybotnick1 "BlargoZZZ"set mybotnick2 "Blargo_Zzz"set mybotnick3 "Blargo[A]"</code></pre></div>or better yet, build yourself an array, which is easier to call in procedures.  Hope this helps  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sun Sep 19, 2004 1:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-09-19T04:17:10-04:00</updated>

		<published>2004-09-19T04:17:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40999#p40999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40999#p40999"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40999#p40999"><![CDATA[
Anyone please?<br><br>Thnx.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sun Sep 19, 2004 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-09-16T14:22:38-04:00</updated>

		<published>2004-09-16T14:22:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40964#p40964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40964#p40964"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40964#p40964"><![CDATA[
Thnx user!<br><br>This is working great.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>Btw, i looked on the forum with the search results for a script that added a user automatically on a onjoin. But in vain  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>Can someone please help me to put me on the right way to start a script like this:<br>When a person joins my #channel. My bot then checks if this nick is known in a handle on my bot. If yes, then disregard, if not, then he does a adduser &lt;handle&gt; (with the nick that joined) &lt;uhost&gt;<div class="codebox"><p>Code: </p><pre><code>bind join - * joinprocproc joinproc {nick uhost hand chan} {if {[isbotnick $nick]} {return 0}if {string match $hand $nick} {return 0}else {set $hand $nickadduser $hand $uhostchattr $hand +f #channel}}</code></pre></div>Is this correct?<br><br>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?<br><br>Thnx.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Thu Sep 16, 2004 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-05T09:42:41-04:00</updated>

		<published>2004-09-05T09:42:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40599#p40599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40599#p40599"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40599#p40599"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># store the start timesetuser $hand XTRA whatever [clock seconds]# when needed, calculate the duration like this (current time-stored time):duration [expr {[clock seconds]-[getuser $hand XTRA whatever]}]</code></pre></div>(make sure the XTRA field contains a number before you do the calculation)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Sep 05, 2004 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-09-05T04:02:12-04:00</updated>

		<published>2004-09-05T04:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40593#p40593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40593#p40593"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40593#p40593"><![CDATA[
How can i put in an setuser XTRA parameter a timer?<br><br>For example:<br>setuser $hand XTRA startjointime "start a timer now in seconds" ?<br><br>Is this possible?<br>So i would like that when i do setuser for a certain person, it starts counting from 0 sec till i ask the getuser (with this i'll get the elapsed time in seconds from the setuser to the getuser)<br>And if it's possible, how do i need to show this elapsed time in the getuser type?<br><br>Thnx.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sun Sep 05, 2004 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-08-28T13:49:00-04:00</updated>

		<published>2004-08-28T13:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40307#p40307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40307#p40307"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40307#p40307"><![CDATA[
Hi,<br><br>Can someone help me a bit more please?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>Thnx.<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sat Aug 28, 2004 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-08-25T14:41:56-04:00</updated>

		<published>2004-08-25T14:41:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40170#p40170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40170#p40170"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40170#p40170"><![CDATA[
Alchera,<br>Thnx for the info.<br>After having some time again, i read some TCL/.../ pages you wrote above, and tried to script this part again.<br><br>Find below what i want to do, and how i tried to script it:<br>(i have 2 bots in my channel. Let's say bot1 is connected, and bot2 isn't)<br>When bot1 joins, he needs to check if bot2 is in (if not, he just continues to take the info from the users in chan right now. If bot2 is in, then he will get the info from bot2)<br>But, when a person joins the channel after this, the bot1 add this user "adduser &lt;handle&gt;" (if it doesn't exist yet) and once that is done, bot1 starts a timer in -&gt; setuser handle XTRA key data<br>The bot makes this for each nick that joins.<br>Once bot2 connects, bot1 will send all this info from all the connected handles (timers) to bot2, who will put all those info's into his setuser (if handle doesn't exist, create first before adding the timer to his XTRA field).<br><br>Script on bot1:<div class="codebox"><p>Code: </p><pre><code>bind join – "#channel" checkbotonlineproc checkbotonline {nick uhost hand chan} {if {[onchan bot2 #channel]} { return 0 }else {foreach nick [chanlist "#channel"] {set hand $nicksetuser $hand XTRA startjointime 0 }}}bind join - * joinuserproc joinuser {nick uhost hand chan} {if {[isbotnick bot2]} {return} #or do i need to work with islinked ?if {![info exists $hand)]} {set $hand $nickadduser $hand $uhost}setuser $hand XTRA startjointime start timer#When the person joins, i would like that a normal timer starts counting in seconds (so when that person will leave afterwards, i will see how long he was in in XX days XX hours...). Can someone please help me on how i can make this timer work in "Setuser"?bind join - * joinbotproc joinbot {nick uhost hand chan} {if {[isbotnick bot2]} {foreach $nick [chanlist "#channel"] {set hand $nickset jointime($nick) [getuser $hand XTRA startjointime]putbot bot2 [time $nick jointime($nick)]}}}bind bot - "time" procbot_join proc procbot_join {from-bot command arg} {if {[string equal -nocase $nick "bot2"] || [string match -nocase "*@blabla.com" $uhost]} {set $nick [lindex [split $arg] 0]set jointime($nick) [lindex [split $arg] 1]set hand $nicksetuser $hand XTRA startjointime $jointime($nick) #how can i make now this amount of seconds (coming from bot2) and to start counting as a timer (for example bot2 transferred 2154 sec … now i want that my timer starts with this 2154 sec , 2155 sec, …)}}</code></pre></div>Script for bot2, same as above, but where bot2 needs to be changed by bot1.<br><br>I hope that some one understand they way i want to go to …<br><br>Unfortunately i can’t make it work/test yet, since i need some clarification/help on some lines…(ref remarks in script part)<br><br>If you see something that can be changed, or made easier, please feel free to change.<br><br>Kind regards,<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Wed Aug 25, 2004 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-30T21:45:06-04:00</updated>

		<published>2004-07-30T21:45:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39282#p39282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39282#p39282"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39282#p39282"><![CDATA[
Two very simple uses of "setuser'. The first disables a user in the bot and the second re-enables a user.<div class="codebox"><p>Code: </p><pre><code>setuser $hand XTRA AUTH DEAD</code></pre></div><div class="codebox"><p>Code: </p><pre><code>setuser $hand XTRA AUTH 0</code></pre></div>The term "handle" refers to the nick originally added to the bots' user file, a user can use any nick he/she wishes as eggdrop uses hostmasks to recongise, not nicks, unless someone is unwise enough to add their host as nick!*@*.<br><br>TCL cannot be learned in 5 minutes either. You may find this <a href="http://tcl.tk/man/tcl8.5/" class="postlink">link</a> very helpful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Jul 30, 2004 9:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-30T20:08:36-04:00</updated>

		<published>2004-07-30T20:08:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39273#p39273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39273#p39273"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39273#p39273"><![CDATA[
If you're unable to look up commands in <strong class="text-strong">tcl-commands.doc</strong> then maybe tcl scripting isn't for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jul 30, 2004 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-07-30T18:04:44-04:00</updated>

		<published>2004-07-30T18:04:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39268#p39268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39268#p39268"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39268#p39268"><![CDATA[
Hi,<br><br>Can someone please show me an example how i can add some info into the XTRA field and how i can make it visible in a channel on a certain command?<br><br>I searched on the internet to have some more info about setuser and getuser but couldn't find info needed on how to work with it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>All additional info is welcome!<br><br>Thnx.<br><br>Regards,<br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Fri Jul 30, 2004 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-07-27T18:02:35-04:00</updated>

		<published>2004-07-27T18:02:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39139#p39139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39139#p39139"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39139#p39139"><![CDATA[
Hi,<br><br>Still having some questions after reading the docs...<br><br>In the tcl-commands.doc, do the &lt;handle&gt; (i think this is the nick of the person i saved on my bot) needs to be a created/saved handle before the info can be stored into the XTRA field of that handle?<br><br>Let's say a new person enters my channel, how can i fill the XTRA field?<br>Does the user first need to be created on my bot, before he can use the "setuser"?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>What does the key-part mean please?<br><div class="codebox"><p>Code: </p><pre><code>setuser &lt;handle&gt; XTRA &lt;key&gt; to receive data set for a certain key</code></pre></div>So let's say i want to store in seconds the time that a user has joined the room...how can i put in there that data?<br>And i presume, when bot two joins the partyline, then he will get the info from bot one with the getuser?<br><br>Can I get some more help on this please?<br><br>Thnx.<br><br>Regards,<br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Tue Jul 27, 2004 6:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-21T13:58:26-04:00</updated>

		<published>2004-07-21T13:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38928#p38928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38928#p38928"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38928#p38928"><![CDATA[
Read tcl-commands.doc in ~doc for a description of getuser and setuser <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jul 21, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2004-07-21T08:04:16-04:00</updated>

		<published>2004-07-21T08:04:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38912#p38912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38912#p38912"/>
		<title type="html"><![CDATA[Sending info from one bot to the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38912#p38912"><![CDATA[
meij,<br>So you mean when my bot connects to the botnet, he gets the info to him?<br><br>gb,<br>What you mean with user's XTRA field? Is that a specific way to store data in tcl?<br><br>Regards,<br><br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Wed Jul 21, 2004 8:04 am</p><hr />
]]></content>
	</entry>
	</feed>
