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

	<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>2005-06-13T06:29:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2005-06-13T06:29:24-04:00</updated>

		<published>2005-06-13T06:29:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50727#p50727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50727#p50727"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50727#p50727"><![CDATA[
hey ...<br><br>i just want to add to  that tcl another part like : <br><br>&lt;bot&gt; !download<br><br>-nick- ( notice ) blah blah <br><br>&lt;bot &gt; #foo - nick messaged me that - blah blah<br><br>can u understand ?<br><br>if the bot get's messaged/notice in the next 60 secconds since the command !download was given to message the channel #foo : this $nick messaged me $arg<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Mon Jun 13, 2005 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-13T06:21:09-04:00</updated>

		<published>2005-06-13T06:21:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50724#p50724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50724#p50724"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50724#p50724"><![CDATA[
What worked? Help with what now?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 13, 2005 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2005-06-13T05:34:21-04:00</updated>

		<published>2005-06-13T05:34:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50719#p50719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50719#p50719"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50719#p50719"><![CDATA[
damn <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> it worked for a while but it stoped ... so please if u can help me i appreciate<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Mon Jun 13, 2005 5:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2005-06-13T05:02:25-04:00</updated>

		<published>2005-06-13T05:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50715#p50715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50715#p50715"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50715#p50715"><![CDATA[
nvm i finished this too <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>love you guys  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Mon Jun 13, 2005 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2005-06-13T04:39:56-04:00</updated>

		<published>2005-06-13T04:39:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50713#p50713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50713#p50713"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50713#p50713"><![CDATA[
i`m back and happy i`ve done it for my self <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> hurayy<br>now i want something else if possible.<br><br>this is the script by awyeah and changed by me .. no copyright stolen .. it's your script man .. <br><div class="codebox"><p>Code: </p><pre><code>#Set the channel on which you want the bot to cycle on set spamchan "#channel" #How many minutes should the bot idle in channel before it parts for the cycle (in mins) set spamdet_idletime "3" #How many seconds should the bot stay gone in the cycle before rejoining the channel (in secs) set spamdet_gonetime "10" #the commands that bot says before exiting the channelset spamsay_1 "!download"set spamsay_2 "!reload"set spamsay_3 "!moloz"set spamsay_4 "login"set spamsay_5 "!up"bind evnt - connect-server resetinactive bind evnt - prerehash resetinactive bind evnt - prerestart resetinactive if {![string match *spamdetect* [timers]]} {timer $spamdet_idletime spamdetect} proc resetinactive {type} { global spamchan channel set $spamchan -inactive putlog "INACTIVE: Set channel settings for $spamchan back to -inactive." return 1 } proc spamdetect {} { global botnick spamchan spamdet_idletime spamdet_gonetime spamsay_1 spamsay_2 spamsay_3 spamsay_4 spamsay_5putserv "PRIVMSG $spamchan : $spamsay_1 "putserv "PRIVMSG $spamchan : $spamsay_2 "putserv "PRIVMSG $spamchan : $spamsay_3 "putserv "PRIVMSG $spamchan : $spamsay_4 "putserv "PRIVMSG $spamchan : $spamsay_5 "channel set $spamchan +inactive putlog "CYCLE: Cycling $spamchan to detect spammers." putlog "CYCLE: Will rejoin $spamchan after $spamdet_gonetime secs." utimer $spamdet_gonetime "channel set $spamchan -inactive" if {![string match *spamdetect* [timers]]} {timer $spamdet_idletime spamdetect} } putlog "made by awyeah and changed By Mavericku"</code></pre></div>i want if possible to add this :<br><br>if somebody responds with notice on the bot to ... send the message to another channel ! i got this only for privmsg.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Mon Jun 13, 2005 4:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-13T03:20:11-04:00</updated>

		<published>2005-06-13T03:20:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50692#p50692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50692#p50692"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50692#p50692"><![CDATA[
You can add these no doubt, through a public trigger, you would have to add some extra pieces of code:<br><div class="codebox"><p>Code: </p><pre><code>#Set the flag here for users who can use public commands to cycle the botset spamcycleflag "mn|o"#Set the triggers here for the bot to cycle on:set spamcycletriggers {"!download""!reload""!moloz"}###SETTINGS END HERE###bind pubm $spamcycleflag "*" pub:spamcycleproc pub:spamcycle {nick uhost hand chan text} { global spamcycletriggers  foreach trigger $spamcycletriggers {   if {[string equal -nocase $trigger [lindex [split $text] 0]]} {    break; spamdetect    }  }}</code></pre></div>I think, this code should no doubtedly do what you want. Anyway this command will make the bot cycle all channels as defined by the 'spamdetect' proc. If you just want to cycle that particular channel, just put <strong class="text-strong">putquick "PART $chan"</strong> instead of <strong class="text-strong">spamdetect</strong><br><br>We wouldn't need to add a putserv for rejoin, since when channels are added into the bot, the bot will join back itself when you part it manually.<br><br>If you don't know how todo that also, then:<div class="codebox"><p>Code: </p><pre><code>proc pub:spamcycle {nick uhost hand chan text} { global spamcycletriggers  foreach trigger $spamcycletriggers {   if {[string equal -nocase $trigger [lindex [split $text] 0]]} {    break; putquick "PART $chan"    }  }}</code></pre></div>Or another way is to set the channel +inactive and -inactive using this technique for a delayed cycle:<br><div class="codebox"><p>Code: </p><pre><code>channel set $chan +inactiveutimer 10 "channel set $chan -inactive"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 13, 2005 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-13T00:41:26-04:00</updated>

		<published>2005-06-13T00:41:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50683#p50683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50683#p50683"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50683#p50683"><![CDATA[
maybe you shoud've tried to contact awyeah first?<br><br>(next time use <div class="codebox"><p>Code: </p><pre><code> tags when posting code)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jun 13, 2005 12:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2005-06-12T23:41:20-04:00</updated>

		<published>2005-06-12T23:41:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50678#p50678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50678#p50678"/>
		<title type="html"><![CDATA[help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50678#p50678"><![CDATA[
Hello everybody , i have a script made by ­awyeah and i wonder if anybody can help me add somthing more to it : <br><br>This is the script : <br><br>#Set the channel on which you want the bot to cycle on <br>set spamchan "#channel" <br><br>#How many minutes should the bot idle in channel before it parts for the cycle (in mins) <br>set spamdet_idletime "9" <br><br>#How many seconds should the bot stay gone in the cycle before rejoining the channel (in secs) <br>set spamdet_gonetime "10" <br><br><br>bind evnt - connect-server resetinactive <br>bind evnt - prerehash resetinactive <br>bind evnt - prerestart resetinactive <br><br>if {![string match *spamdetect* [timers]]} {timer $spamdet_idletime spamdetect} <br><br><br>proc resetinactive {type} { <br>global spamchan <br>channel set $spamchan -inactive <br>putlog "INACTIVE: Set channel settings for $spamchan back to -inactive." <br>return 1 <br>} <br><br>proc spamdetect {} { <br>global botnick spamchan spamdet_idletime spamdet_gonetime <br>channel set $spamchan +inactive <br>putlog "CYCLE: Cycling $spamchan to detect spammers." <br>putlog "CYCLE: Will rejoin $spamchan after $spamdet_gonetime secs." <br>utimer $spamdet_gonetime "channel set $spamchan -inactive" <br>if {![string match *spamdetect* [timers]]} {timer $spamdet_idletime spamdetect} <br>} <br><br>-----------------------------<br><br><br>I want to add this if possible :<br><br>&lt;bot&gt; !download<br>&lt;bot&gt; !reload<br>&lt;bot&gt; !moloz<br><br>and after he gives that commands to the channel , he cycles. and if he get's any answer from anywone by notice , msg , ctcp, to report it in another channel <br><br>and if u can to be abble to add more words like !download ..<br><br>Thank you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Sun Jun 12, 2005 11:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
