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

	<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>2025-03-10T06:13:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2025-03-10T06:13:29-04:00</updated>

		<published>2025-03-10T06:13:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113269#p113269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113269#p113269"/>
		<title type="html"><![CDATA[Re: Auto Voice Top 3 word (kelime) players]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113269#p113269"><![CDATA[
Thank you very much CrazyCat  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br><br>but error<br><br> Tcl error [tgvonjoin]: can't read "::tgscore": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Mon Mar 10, 2025 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-03-10T04:02:31-04:00</updated>

		<published>2025-03-10T04:02:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113268#p113268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113268#p113268"/>
		<title type="html"><![CDATA[Re: Auto Voice Top 3 word (kelime) players]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113268#p113268"><![CDATA[
You can do it with a small proc using tgscore:<br><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">proc tgvonjoin {nick uhost handle chan} {   set tmp [list]   for {set i 0} {$i&lt;[llength $::tgscore]} {incr i} {      lappend tmp [split [lindex $::tgscore $i] ,]   }   set tmp [lrange [lsort -decreasing -integer -index 2 $tmp] 0 2]   if {[lsearch -nocase -index 0 $tmp $nick]&gt;-1} {      pushmode $chan +v $nick   }}bind join - "$tgchan *" tgvonjoin</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Mar 10, 2025 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2025-03-09T06:01:37-04:00</updated>

		<published>2025-03-09T06:01:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113267#p113267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113267#p113267"/>
		<title type="html"><![CDATA[Auto Voice Top 3 word (kelime) players]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113267#p113267"><![CDATA[
I don't understand English very well. Sorry<br><br>I want my word bot to auto voice users that are in the score file. the score file lists users in 1st place to last. So on join it would need to check to see if user is in the scores file. and then if the user is amoung the top 3 players he/she is auto voiced. This below Is a section on a public command used to display the top 10 players in the channel. <br><div class="codebox"><p>Code: </p><pre><code>#triggered when someone uses !top10 commandproc tgshowtop10 {nick host hand chan text} {global tgscores tgchan tgscorestotalif {[strlwr $chan]==[strlwr $tgchan]} {tggetscoresif {$tgscorestotal&gt;0} {if {$tgscorestotal&gt;9} {set _max 9} else {set _max [expr $tgscorestotal-1]}set i 0while {$i&lt;=$_max} {set _item [lindex $tgscores $i]set _nick [join [lindex [split $_item ,] 2]]set _score [join [lindex [split $_item ,] 0]]if {$i==0} {append _scores "[tgcolscr1]$_nick $_score"} elseif {$i==1} {append _scores ", [tgcolscr2]$_nick $_score"} elseif {$i==2} {append _scores ", [tgcolscr3]$_nick $_score"} else {append _scores ", [tgcolmisc1]$_nick $_score"}incr i}tggamemsg "[tgcolmisc1]Top 10: $_scores"} else {tggamemsg "[tgcolmisc1]Skor tablosu boş."}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Sun Mar 09, 2025 6:01 am</p><hr />
]]></content>
	</entry>
	</feed>
