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

	<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>2009-06-05T10:50:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iNFERNiS]]></name></author>
		<updated>2009-06-05T10:50:51-04:00</updated>

		<published>2009-06-05T10:50:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89101#p89101</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89101#p89101"/>
		<title type="html"><![CDATA[Anti-Idle by slennox mod request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89101#p89101"><![CDATA[
Hiya,<br><br>I'd like to have it work for multiple channels.<br>Also a partyline trigger to set it off manually.<br><br>thx in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code># aidle.tcl v1.1 (28 March 1999) by slennox &lt;slenny@xxxxx.com.au&gt;# Latest versions can be found at www.ozemail.com.au/~slenny/eggdrop/## Basic anti-idle script, sends random msg's to the specified channel at# random time intervals.## v1.0 - Initial release# v1.1 - Stremlined startup timer check, added +1 to utimer# Channel to send anti-idle messages toset ai_chan "#channel"# Maximum time interval between messages (in minutes)set ai_time 240# Messages to sendset ai_msgs {  "blabla"  "Hi" }# Don't edit anything below unless you know what you're doingproc ai_start {} {  global ai_time  if {[string match *ai_sendmsg* [timers]]} {return 0}  timer [expr [rand $ai_time] + 1] ai_sendmsg}proc ai_sendmsg {} {  global botnick ai_chan ai_msgs ai_time  if {[validchan $ai_chan] &amp;&amp; [onchan $botnick $ai_chan]} {    puthelp "PRIVMSG $ai_chan :[lindex $ai_msgs [rand [llength $ai_msgs]]]"  }  timer [expr [rand $ai_time] + 1] ai_sendmsg}set ai_chan [string tolower $ai_chan]ai_startputlog "Loaded aidle.tcl v1.1 by slennox"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9246">iNFERNiS</a> — Fri Jun 05, 2009 10:50 am</p><hr />
]]></content>
	</entry>
	</feed>
