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

	<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-08-25T11:57:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[KevKev]]></name></author>
		<updated>2004-08-25T11:57:25-04:00</updated>

		<published>2004-08-25T11:57:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40163#p40163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40163#p40163"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40163#p40163"><![CDATA[
<blockquote class="uncited"><div>You have to give it a test to see that out. <br><br>Personally I think the eggdrops internal settings are more better and faster than tcl scripts as they are coded in C, which makes them more effective!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>problem is if you completely ignore the user for 24 hours he can't trigger other binds <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>I think the requestor wanted to allow a user to use a command only 5 times every 24 hours, not completely ignore the user after the user issues any msg to the bot 5 times<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3940">KevKev</a> — Wed Aug 25, 2004 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T21:35:48-04:00</updated>

		<published>2004-08-23T21:35:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40096#p40096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40096#p40096"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40096#p40096"><![CDATA[
You have to give it a test to see that out. <br><br>Personally I think the eggdrops internal settings are more better and faster than tcl scripts as they are coded in C, which makes them more effective!  <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=4875">awyeah</a> — Mon Aug 23, 2004 9:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-23T13:48:49-04:00</updated>

		<published>2004-08-23T13:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40082#p40082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40082#p40082"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40082#p40082"><![CDATA[
hehe, hello agine &amp; agine :]<br><br>do you think this script i'v made will help me out?<br><br>------------------------------------------------------------<br><br><strong class="text-strong">set count 5                                                             <br>set seconds 82800<br>set channel #test                                                <br><br>bind msg * "!test" floodprot<br><br>proc floodprot { nick uhost hand } {<br>  global botnick livesaver channel seconds count<br>  if {$nick == $botnick} {return 0}<br>  if {[isop $nick $channel]} {return 0}<br>  lappend livesaver($uhost:$nick) 1<br>  utimer $seconds "expire livesaver($uhost:$nick)"<br>  if {[llength $livesaver($uhost:$nick)] &gt;= $count} {<br>    putserv "PRIVMSG $nick :You have used the command 5times this day"<br>  }<br>}</strong><br><br>--------------------------------------------------------<p>Statistics: Posted by Guest — Mon Aug 23, 2004 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T07:00:51-04:00</updated>

		<published>2004-08-23T07:00:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40064#p40064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40064#p40064"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40064#p40064"><![CDATA[
Yes you can set the ignore for 24hrs. See the 'newignore' command in tcl-commands.doc and change the ignore time as you wish.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>As, 1hr = 60 mins<br>24hrs = 24x60mins = 1440mins<br><br>Then you will need to set 1440 to make it 24hrs.<br>As for the 5 times yes you can set that too.<br><br>See the 'flood-msg' variable in the .conf file.<br>The format of this is:<br>NUMBER_OF_LINES:SECONDS<br><br>Example: '5:3'<br>Meaning if, 5 lines of text are sent by a single host to the bot in less than 3 seconds then the bot will ignore that user for the defined amount of time set.  <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=4875">awyeah</a> — Mon Aug 23, 2004 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-23T06:40:14-04:00</updated>

		<published>2004-08-23T06:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40063#p40063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40063#p40063"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40063#p40063"><![CDATA[
hehe okey <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>But can i set that timer to 24hrs?<br>So the bot 'ignores' the users for 24hrs?<br>When thay have type the command 5times?<p>Statistics: Posted by Guest — Mon Aug 23, 2004 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T00:08:49-04:00</updated>

		<published>2004-08-23T00:08:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40033#p40033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40033#p40033"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40033#p40033"><![CDATA[
Try looking at the flood-msg settings in the bots .conf file.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br>Set that to 5 times in less than bla bla seconds you want <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>And take a look at this thread as well:<br><a href="http://forum.egghelp.org/viewtopic.php?t=7750" class="postlink">http://forum.egghelp.org/viewtopic.php?t=7750</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 12:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-22T15:21:29-04:00</updated>

		<published>2004-08-22T15:21:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40012#p40012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40012#p40012"/>
		<title type="html"><![CDATA[flood...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40012#p40012"><![CDATA[
Hello agine. Thanx for helping last time i asked for help..<br><br>this time i need a "anti flood system"<br><br>So users only can use that command 5times/day<br><br>If someone can help me out! pls post a message.<p>Statistics: Posted by Guest — Sun Aug 22, 2004 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-21T17:29:21-04:00</updated>

		<published>2004-08-21T17:29:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39972#p39972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39972#p39972"/>
		<title type="html"><![CDATA[TCL code help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39972#p39972"><![CDATA[
Here's what you asked for. This script will run everytime someone sends your bot a message with !test as it's first word. Remember that if whatever follows the number is made up of multiple words, the second method presented is useless. <br><div class="codebox"><p>Code: </p><pre><code>bind msg - !test testproc test {nick uhost hand chan text} {   # Now we've got to extract the first word from the   # text variable and put it into our number variable.   # This is the most commonly used approach:   set text [split $text]   set number [lindex $text 0]   set text [lrange $text 1 end]   # However, if the text following the number does    # not contain further words, an alternative one-liner   # would be as following:   foreach {number text} [split $text] { break }}</code></pre></div>Example usage would be: <blockquote class="uncited"><div>/msg botname !test 42 white</div></blockquote><p>Statistics: Posted by Guest — Sat Aug 21, 2004 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-21T16:46:26-04:00</updated>

		<published>2004-08-21T16:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39971#p39971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39971#p39971"/>
		<title type="html"><![CDATA[TCL Code help...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39971#p39971"><![CDATA[
Hello ppls, i need some help with a tcl script...<br><br>this is an example:<br><br>bind msg * "!test" test<br><br>proc test { nick host handle args } {<br>global botnick<br>set number &lt;first text&gt;<br>set text &lt;secound text&gt;<br>}<br><br>this means...like:<br>/msg BOTNICK !test 0456 hello<br><br>i think you see how i want it...<br><br>Hope you can help me out!<p>Statistics: Posted by Guest — Sat Aug 21, 2004 4:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
