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

	<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>2007-11-03T11:55:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-03T11:55:12-04:00</updated>

		<published>2007-11-03T11:55:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77423#p77423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77423#p77423"/>
		<title type="html"><![CDATA[Say a random text on 2 or more channels at once]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77423#p77423"><![CDATA[
timer $speak(time) s:speaks <br><br>You don't tell your proc what channel to check.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Nov 03, 2007 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Riddler]]></name></author>
		<updated>2007-11-03T11:38:36-04:00</updated>

		<published>2007-11-03T11:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77422#p77422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77422#p77422"/>
		<title type="html"><![CDATA[Say a random text on 2 or more channels at once]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77422#p77422"><![CDATA[
Hello guys, I've made a code that will randomly send a text to a channel, but only if that channel has set <strong class="text-strong">+speak</strong> flag<br><br>Here is the code :<br><div class="codebox"><p>Code: </p><pre><code># say.tcl### CONFIG ###set speak(time) "2"set speak(type) "PRIVMSG"set speak(msgs) { "text1" "text2"}### CODE ###setudef flag speakif {![string match "*speaks*" [timers]]} {  timer $speak(time) s:speaks}proc s:speaks { } { global speak if {![channel get $chan speak]} { return 0 }  set rmsg [lindex $speak(msgs) [rand [llength $speak(msgs)]]]    putserv "$speak(type) $chan :$rmsg"  return 1  timer $speak(time) s:speaks  return 0}putlog "Loaded: say.tcl"</code></pre></div>The problem is that the bot dosen't give me eny error and the messages ar not sent to the channels that I've set the +speak flag..<br><br>What's the problem ?!<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9010">Riddler</a> — Sat Nov 03, 2007 11:38 am</p><hr />
]]></content>
	</entry>
	</feed>
