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

	<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-10-27T14:03:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-27T14:03:32-04:00</updated>

		<published>2004-10-27T14:03:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42309#p42309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42309#p42309"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42309#p42309"><![CDATA[
Mhm, Sorry<br>It's not my mind.<br><br>Thx for the help<br><br>If anybody will help me:<br><a href="mailto:demian@demian-hartmann.de">demian@demian-hartmann.de</a><br><br><strong class="text-strong"><span style="color:darkred">*closed*</span></strong><p>Statistics: Posted by Guest — Wed Oct 27, 2004 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-27T13:45:31-04:00</updated>

		<published>2004-10-27T13:45:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42308#p42308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42308#p42308"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42308#p42308"><![CDATA[
The topic seems abit off, you don't have a problem, you just want us to make half your script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Oct 27, 2004 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-27T06:03:00-04:00</updated>

		<published>2004-10-27T06:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42275#p42275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42275#p42275"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42275#p42275"><![CDATA[
Yes I understand,<br>But I dont know much from tcl.<br>So,<br>I dont know how I script this,<br>Do you can help me?<br><div class="codebox"><p>Code: </p><pre><code>         bind raw &lt;flags&gt; &lt;keyword-mask&gt; &lt;proc&gt;         procname &lt;from&gt; &lt;keyword&gt; &lt;text&gt;</code></pre></div>this is the command. I know and this come in a new file.<br>But how I set the values?<br>and how I link the 2 scripts?<p>Statistics: Posted by Guest — Wed Oct 27, 2004 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-25T09:42:15-04:00</updated>

		<published>2004-10-25T09:42:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42215#p42215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42215#p42215"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42215#p42215"><![CDATA[
<blockquote class="uncited"><div>join is not a tcl command.</div></blockquote>wrong.<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>channel add $channelset total [llength [chanlist $channel]]</code></pre></div></div></blockquote>This will not work, as the bot won't join the channel before your proc returns. After joining, eggdrop will perform /MODE #chan +b, /MODE #chan, /WHO #chan. "chanlist" will not be complete untill the END OF /WHO reply (315) is recieved by your bot. You need a delay or a raw bind to make sure you don't check the llength of [chanlist $channel] untill the list is complete. (so you'll need to split your code into two procs)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Oct 25, 2004 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-24T17:46:31-04:00</updated>

		<published>2004-10-24T17:46:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42195#p42195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42195#p42195"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42195#p42195"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>Yes, I learn Tcl ^^<br>Thank you for the Help file.<br>I read that now.<br><br>But The Script isn't that what I want.<br>Here ist the full script:<br><div class="codebox"><p>Code: </p><pre><code># BotRequest by Domian # #Domi @ Quakenet# Version 0.1# Command:# !request &lt;Bot&gt; &lt;#Channel&gt; &lt;e-mail adresse&gt;# Settingsset botnicks "Bello` KriXDesiGn"# Here are the Botnicks which can requested# Here beginn the scriptbind pub -|- !request pub:requestproc pub:request {nick uhost handle chan text} {global botnicks receiver waittime  set ipmask [lindex [split [maskhost $nick![getchanhost $nick $chan]] "@"] 1]  set userm [lindex [split [getchanhost $nick $chan] "@"] 0]  set userhost *!*$userm@$ipmask  set requestbot [lindex [split $text " "] 0]  set channel [lindex [split $text " "] 1]  set email [lindex [split $text " "] 2]    if {$requestbot == ""} {      putserv "NOTICE $nick :Wrong !request-format."      putserv "NOTICE $nick :To request use: 4!request &lt;bot-nick&gt; #channel &lt;e-mail adresse&gt;"      putserv "NOTICE $nick :You also need an e-mail acc and 10 or more Members in the requested channel."      } else {      if {$channel == ""} {        putserv "NOTICE $nick :Wrong !request-format."        putserv "NOTICE $nick :To request use: 4!request &lt;bot-nick&gt; #channel &lt;e-mail adresse&gt;"        putserv "NOTICE $nick :You also need an e-mail acc and 10 or more Members in the requested channel."        } else {        if {[string first "#" $channel] == -1} {          putserv "NOTICE $nick :Wrong !request-format."          putserv "NOTICE $nick :To request use: 4!request &lt;bot-nick&gt; #channel &lt;e-mail adresse&gt;"          putserv "NOTICE $nick :You also need an e-mail acc and 10 or more Members in the requested channel."          } else {           if {[string first $requestbot $botnicks] != -1} {             if {$channel != ""} {               if {$email != ""} {                 putserv "NOTICE $nick :Request send."                 channel add $channel                 set total [llength [chanlist $channel]]                 if { $total &gt;= 10} {                     putserv "NOTICE $nick :The Bot will soon join."                   putbot $requestbot .join $channel"                   putbot $requestbot .adduser $nick $userhost"                   putbot $requestbot .chattr $nick +n $channel"                   }} else {                     putserv "NOTICE $nick :The Channel is to small, the Bot won't join"               }             }             } else {             putserv "NOTICE $nick :You typed a wrong bot-nick. Known bot-nick's are:"             putserv "NOTICE $nick :$botnicks"           }         }       }     }   }putlog "Loaded BotRequest 0.1 by Domian"</code></pre></div>Do you know now what I will?<br>The bot join the channel, and he send the first notice.<br>But the user count script ...<br>there ist a mistake.<br><br>Sorry for my bad english...<p>Statistics: Posted by Guest — Sun Oct 24, 2004 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-10-24T12:17:48-04:00</updated>

		<published>2004-10-24T12:17:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42168#p42168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42168#p42168"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42168#p42168"><![CDATA[
yanno, you will never, ever be able to write this script without <strong class="text-strong"><em class="text-italics">FIRST</em></strong> reading tcl-commands.doc.  This document is <span style="text-decoration:underline">vital</span> for the scripter... every question you have asked could be answered with the information contained within that doc.... and then some.<br>The script you seek to create, believe it or not, has already been written, for the most part, as a netbots component by Johoho named <a href="http://johoho.eggheads.org/eggdrop/files/components/cdiss.tcl.tar.gz" class="postlink">cdiss.tcl</a>... I'm sure it would be easier for you to rewrite this tcl than to write your own.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sun Oct 24, 2004 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-24T08:40:36-04:00</updated>

		<published>2004-10-24T08:40:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42147#p42147</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42147#p42147"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42147#p42147"><![CDATA[
Thx, The bot joint now the channel.<br><div class="codebox"><p>Code: </p><pre><code>                 putserv "NOTICE $nick :Request send."                 channel add $channel                 putserv "NOTICE $nick :The Bot will soon join."                 putbot $requestbot .join $channel"                 putbot $requestbot .adduser $nick $userhost"                 putbot $requestbot .chattr $nick +n $channel"</code></pre></div>So,<br>But how I told the Bot that he look the user count,<br>and if the user count ist higher than 10 he give the user the flags.<br>but if in the channel are less than 10 user, they part.<br><br>Can you help me?<p>Statistics: Posted by Guest — Sun Oct 24, 2004 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-10-24T05:39:28-04:00</updated>

		<published>2004-10-24T05:39:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42141#p42141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42141#p42141"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42141#p42141"><![CDATA[
The command is not "join", which by the way, is not a tcl command.  The command you seek is <strong class="text-strong">channel add</strong>, read all about it in <em class="text-italics">tcl-commands.doc</em>  <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 Oct 24, 2004 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-24T04:56:46-04:00</updated>

		<published>2004-10-24T04:56:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42139#p42139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42139#p42139"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42139#p42139"><![CDATA[
No, <div class="codebox"><p>Code: </p><pre><code>                 putserv "NOTICE $nick :Request send."                  join $channel                  putserv "NOTICE $nick :The Bot will soon join." </code></pre></div>The bot send the first notice, after 3 seconds the bot send the second notice,<br>But he doesn't join the channel. and the join command is inside the notices.<p>Statistics: Posted by Guest — Sun Oct 24, 2004 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T04:40:14-04:00</updated>

		<published>2004-10-24T04:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42135#p42135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42135#p42135"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42135#p42135"><![CDATA[
if the bot is sending the replys or the data i am asuming to the ohter bot .. then you should check that other bot..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 4:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-24T05:39:13-04:00</updated>

		<published>2004-10-24T04:17:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42134#p42134</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42134#p42134"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42134#p42134"><![CDATA[
Thank you,<br><br>Another Problem:  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><div class="codebox"><p>Code: </p><pre><code>           if {[string first $requestbot $botnicks] != -1} {             if {$channel != ""} {               if {$email != ""} {                 putserv "NOTICE $nick :Request send."                 join $channel                 putserv "NOTICE $nick :The Bot will soon join."                 putserv "PRIVMSG $requestbot :.join $channel"                 putserv "PRIVMSG $requestbot :.adduser $nick $userhost"                 putserv "PRIVMSG $requestbot :.chattr $nick +n $channel"</code></pre></div>The bot send the notice, but he doesn't join.<br>where is the mistake?<br><br>The Script with the user is after the join command.<br>The bot join the Channel,<br>look the user count,<br>and if there more than 10 user,<br>the $requestbot will join,<p>Statistics: Posted by Guest — Sun Oct 24, 2004 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-23T22:24:05-04:00</updated>

		<published>2004-10-23T22:24:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42125#p42125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42125#p42125"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42125#p42125"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc - chanstat dcc:chanstatproc dcc:chanstat {hand idx text} { set chan [lindex [split $text] 0] if {$chan == ""} {   putidx $idx "Usage: .chanstat &lt;#channel&gt;"   return } set ops 0; set voice 0; set users 0 foreach user [chanlist $chan] {   if {[isop $user $chan]} {     incr ops   } elseif {[isvoice $user $chan]} {     incr voice   } else {     incr users  } } set total [expr $ops+$voice+$users] putidx $idx "ChanStats $chan: $ops ops, $voice voice, $users users (total $total)"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sat Oct 23, 2004 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-23T20:15:04-04:00</updated>

		<published>2004-10-23T20:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42120#p42120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42120#p42120"/>
		<title type="html"><![CDATA[Tcl Problem: Command for the user count on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42120#p42120"><![CDATA[
Hello,<br>I need a Tcl command, where the bot tell me the user count on a channel. not a peak script, <br>but the user count.<br><br>example:<br>5 ops,<br>2 voice,<br>20 other user.<br><br>I need this for a Bot request script.<br>a user post !request botname #channel <br>the requestbot join den channel.<br>if there more than 10 user <br>the requestbot leave the chan <br>and the bot with the botname join the channel,<br>thats is,<br>and for this I need a script.<br>The Beginning is finished,<br>but the requestbot will'nt join the channel,<br>and i dont know how much user are on the channel.<br><br>I hope anyone can help me.<p>Statistics: Posted by Guest — Sat Oct 23, 2004 8:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
