<?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/11895" />

	<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>2006-05-24T14:36:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T14:36:58-04:00</updated>

		<published>2006-05-24T14:36:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63356#p63356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63356#p63356"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63356#p63356"><![CDATA[
i am using this time stamp format btw<br><br>et time1 [clock format [clock seconds] -format "%Y %m %d %H %M"]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T14:29:00-04:00</updated>

		<published>2006-05-24T14:29:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63355#p63355</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63355#p63355"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63355#p63355"><![CDATA[
here is what i have wil the userfile set - see if i have done something stupid like normal <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !age pub:age bind pub -|- !adduser pub:add:age set userjoindata "users.txt" proc pub:add:age {nick uhost hand chan text} {    if {[llength $text] &gt; 1} {       puthelp "PRIVMSG $chan :You were supposed to add a nick.. not more"    } elseif {![lsearch $::userjoindata $text]} {       lappend userjoindata {$nick clock format [clock scan now] -format "%D %T"}    } } proc pub:age {nick uhost hand chan text} {    if {[llength $text] &gt; 1} {       puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more"    } elseif {![lsearch $::userjoindata $text]} {       puthelp "PRIVMSG $chan :I don't remember seing $text    } else {       puthelp "PRIVMSG $chan :$text has been in $chan since [lindex $::userjoindata [lsearch $::userjoindata $nick] 2]    } }</code></pre></div>and the age works now i have added the missing " s at the end of the puthelp lines near the end <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> but it just says this<br><br>Quest has been in #chan since - no time - i manually added the nick / date to test !age - i might have the wrong date format tho for that part :-s<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T14:27:00-04:00</updated>

		<published>2006-05-24T14:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63354#p63354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63354#p63354"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63354#p63354"><![CDATA[
hi mate<br><br>thanks - it does not crash the bot now. but it does nothing<br><br>not tcl errors nor does it give the error messages in the irc channel eg you need to specify a nick or anyt other error - but it does not add the info the text file - any suggestions buddy?<br><br>Thanks for the recode.<br><br>god bless you my son<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-05-24T14:03:35-04:00</updated>

		<published>2006-05-24T14:03:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63353#p63353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63353#p63353"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63353#p63353"><![CDATA[
i missed some closing brackets. here's the corrected code + !adduser: <div class="codebox"><p>Code: </p><pre><code>bind pub -|- !age pub:agebind pub -|- !adduser pub:add:ageset userjoindata ""proc pub:add:age {nick uhost hand chan text} {   if {[llength $text] &gt; 1} {      puthelp "PRIVMSG $chan :You were supposed to add a nick.. not more"   } elseif {![lsearch $::userjoindata $text]} {      lappend userjoindata {$nick clock format [clock scan now] -format "%D %T"}}}proc pub:age {nick uhost hand chan text} {   if {[llength $text] &gt; 1} {      puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more"   } elseif {![lsearch $::userjoindata $text]} {      puthelp "PRIVMSG $chan :I don't remember seing $text   } else {      puthelp "PRIVMSG $chan :$text has been in $chan since [lindex $::userjoindata [lsearch $::userjoindata $nick] 2]   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Wed May 24, 2006 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T05:21:51-04:00</updated>

		<published>2006-05-24T05:21:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63343#p63343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63343#p63343"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63343#p63343"><![CDATA[
i get this error buddy :-s<br><div class="codebox"><p>Code: </p><pre><code>[03:23] missing close-brace    while executing"proc add:age {nick uhost hand chan} {   if {![lsearch $::userjoindata $nick]} {      lappend userjoindata {$nick clock format [clock scan now] -fo..."    (file "scripts/lobby/users.tcl" line 132)    invoked from within"source scripts/lobby/users.tcl"    (file "zeus.conf" line 83)[03:23] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)[f4w@lobby-poseidon eggdrop]$</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T05:17:44-04:00</updated>

		<published>2006-05-24T05:17:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63342#p63342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63342#p63342"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63342#p63342"><![CDATA[
instead of onjoin - how would i add the user using !adduser &lt;nick&gt;<br><br>I would like to manually add the user if its not too much work.<br><br>AND THANK YOU SO MCUH - I WILL BUY YOU A BEER<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 5:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-05-24T04:26:36-04:00</updated>

		<published>2006-05-24T04:26:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63340#p63340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63340#p63340"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63340#p63340"><![CDATA[
i think this should work. if something's wrong, leave a reply and i'll try to fix it this evening. now i got to go to school <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <div class="codebox"><p>Code: </p><pre><code>bind pub -|- !age pub:agebind join -|- "#chan *" add:ageset userjoindata ""proc add:age {nick uhost hand chan} {if {![lsearch $::userjoindata $nick]} {lappend userjoindata {$nick clock format [clock scan now] -format "%D %T"}}proc pub:age {nick uhost hand chan text} {if {[llength $text] &gt; 1} { puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more" } elseif {![lsearch $::userjoindata $text]} {puthelp "PRIVMSG $chan :I don't remember seing $text} else {puthelp "PRIVMSG $chan :$text has been in $chan since [lindex $::userjoindata [lsearch $::userjoindata $nick] 2] }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Wed May 24, 2006 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-24T03:59:39-04:00</updated>

		<published>2006-05-24T03:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63337#p63337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63337#p63337"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63337#p63337"><![CDATA[
yes offline counts as well<br>i just need to know when the bot first saw the person until today / now<br><br>eg the text would say nick 200601010515 <br><br>numbers are thus<br>2006 year 01 month 01 day 05 hour 15 minute<br><br>Then i do<br><br>!age nick<br>bot says nick has been on #lobby for x months x days x hours x minutes<br><br>is answer = zero then say nothing eg if yeah was 0 then ignore the year part<br><br>and to add to the text file<br><br>i would like a !adduser &lt;nick&gt; bind<br><br>any ideas buddy?<br><br>god bless<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed May 24, 2006 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-05-24T01:48:29-04:00</updated>

		<published>2006-05-24T01:48:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63332#p63332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63332#p63332"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63332#p63332"><![CDATA[
does offline time count or not?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Wed May 24, 2006 1:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-23T23:49:24-04:00</updated>

		<published>2006-05-23T23:49:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63327#p63327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63327#p63327"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63327#p63327"><![CDATA[
just a thort, i guess kinda like a seen script but just from the first time the bot saw the user would be frigging great.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Tue May 23, 2006 11:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-05-23T23:17:42-04:00</updated>

		<published>2006-05-23T23:17:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63326#p63326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63326#p63326"/>
		<title type="html"><![CDATA[script request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63326#p63326"><![CDATA[
hi guys, i have a question request. If its on the download section sorry if i missed it.<br><br>I am looking for a tcl which would do the following.<br><br>Everytime the bot sees a new nice it adds the name to a txt file and date / time stamps that entry.<br><br>Then when ever a channel +o does !age &lt;nick&gt; the bot looks at the file and finds the record and says ok &lt;nick&gt; has been in channel for 7 weeks 2 days.<br><br>not idle time but from the first time the nick was seen on the channel. does that make sence?<br><br>any help would be great. thank you<br><br>god bless u all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Tue May 23, 2006 11:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
