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

	<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>2019-04-21T18:19:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2019-04-21T18:19:06-04:00</updated>

		<published>2019-04-21T18:19:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107614#p107614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107614#p107614"/>
		<title type="html"><![CDATA[User level - based on time spent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107614#p107614"><![CDATA[
Works fine until you do !timespent <br><br>It returns the following. <br><br>!timespent<br><br>Dominatez - Nickname  has no info on this channel<br><br>It is not returning any information for whomever does !timespent<br><br>It gives info for !timespent NICKNAME<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Sun Apr 21, 2019 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2019-04-20T01:32:48-04:00</updated>

		<published>2019-04-20T01:32:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107611#p107611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107611#p107611"/>
		<title type="html"><![CDATA[Re: User level - based on time spent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107611#p107611"><![CDATA[
<blockquote class="uncited"><div>I found this: <a href="http://forum.egghelp.org/viewtopic.php?t=19314&amp;highlight=track+user" class="postlink">http://forum.egghelp.org/viewtopic.php? ... track+user</a> and thought it was super interesting.</div></blockquote>Have you loaded it, tested it, and learned how to work it    as -is ?   <br>If not, do that first.<br>Need to be sure it works as expected, before doing any additions / modifications.<br>This way, you've established a known starting point.<br><blockquote class="uncited"><div> I'd love to  see if it could be modified to reflect the following:<br><br>Level 1 - achieved after user has spent X (X=1) hours in channel<br>Level 2 - X + 20 hours<br>Level 3 - X + 40 hours<br>Level 4 - X + 60 hours<br>Level 5 - X + 80 hours<br>... and so on<br><br>Upon entering the channel, the bot would announce:<br><br>"&lt;nick&gt; has earned a &lt;level&gt; user rating. Thank you for your commitment to &lt;channel name&gt;"</div></blockquote>Now that you have it working as expected :<br><br>Go to the bottom of the script, and add these lines<br><div class="codebox"><p>Code: </p><pre><code>####  additions start here #######bind join - "* *" announce_levelproc announce_level {nick uhost handle chan} {global timespent        if {![channel get $chan timespent]} {                return 0        }         set host [lindex [split $uhost @] 1]        if {![info exists timespent($chan,$host)]} {                return 0        }        set num_seconds [lindex [split $timespent($chan,$host) ] 0 ]        set level [expr (($num_seconds /20 ) / 3600) + 1]        putserv "privmsg $chan :$nick has earned a \0031,15Level $level\003 user rating. Thank you for your commitment to $chan"}### end addtions ######</code></pre></div><blockquote class="uncited"><div>I can test the code </div></blockquote>Good.  Test it.  A lot.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Because I have tested it only briefly.<br><blockquote class="uncited"><div>... ... but testing thorough functionality may take time.</div></blockquote>Find me on irc, and I'll explain how you can fake it out, with any amount of time you want,  for testing.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 20, 2019 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crymsun]]></name></author>
		<updated>2019-03-17T12:32:20-04:00</updated>

		<published>2019-03-17T12:32:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107561#p107561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107561#p107561"/>
		<title type="html"><![CDATA[User level - based on time spent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107561#p107561"><![CDATA[
I found this: <a href="http://forum.egghelp.org/viewtopic.php?t=19314&amp;highlight=track+user" class="postlink">http://forum.egghelp.org/viewtopic.php? ... track+user</a> and thought it was super interesting. I'd love to  see if it could be modified to reflect the following:<br><br>Level 1 - achieved after user has spent X (X=1) hours in channel<br>Level 2 - X + 20 hours<br>Level 3 - X + 40 hours<br>Level 4 - X + 60 hours<br>Level 5 - X + 80 hours<br>... and so on<br><br>Upon entering the channel, the bot would announce:<br><br>"&lt;nick&gt; has earned a &lt;level&gt; user rating. Thank you for your commitment to &lt;channel name&gt;"<br><br>The purposes of the script:<br>- acknowledge/recognize users for the time they commit to the channel<br>- tracking how many are new, how many are "regulars", etc.<br>- provide a recognition incentive to be in channel more<br><br>I can test the code &amp; report back quite quickly... but testing thorough functionality may take time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12774">crymsun</a> — Sun Mar 17, 2019 12:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
