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

	<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-12-11T18:43:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-11T18:43:45-04:00</updated>

		<published>2005-12-11T18:43:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58190#p58190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58190#p58190"/>
		<title type="html"><![CDATA[Random Topic at Given time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58190#p58190"><![CDATA[
Your code has a lot of bogus stuff, try this:<div class="codebox"><p>Code: </p><pre><code>#set the time to change topic in minutes (ex: for 8 hours = 8hours x 60mins = 480 mins)set topictime 5#set the channels to set the topic on delimited with commas (ex: #chan1,chan2)set topicchans "#channel-1 #channel-2"#set the topics u wanna use within double quotsset topictext {     "Best file compression around: 'DEL *.*' = 100% compression"     "If debugging is the process of removing bugs, then programming must be the process of putting them in."     "Doctor : A Person Who Kills Your Ills By Pills, And Kills You With His Bills."}if {[timerexists settopic] == ""} { timer $topictime settopic}proc settopic {} { global topictime topicchans topictext set topic [lindex $topictext [rand [llength $topictext]]] foreach chan $topicchans {  if {[botonchan $chan] &amp;&amp; [botisop $chan]} {   putquick "TOPIC $chan :$topic"  } } timer $topictime settopic}</code></pre></div>PS: alltools.tcl should be loaded for the [timerexists] command to work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 11, 2005 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Romeyo]]></name></author>
		<updated>2005-12-11T15:20:47-04:00</updated>

		<published>2005-12-11T15:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58184#p58184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58184#p58184"/>
		<title type="html"><![CDATA[Random Topic at Given time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58184#p58184"><![CDATA[
Hi,<br>    I have written a tcl for setting random topic from a given time ... But its not changing the topic at all... My code is,<br><div class="codebox"><p>Code: </p><pre><code>#set the time to change topic in minutes (ex: for 8 hours = 8hours x 60mins = 480 mins)set topic-at- 5#set the channels to set the topic on delimited with commas (ex: #chan1,chan2)set chan #channel-1,#channel-2#set the topics u wanna use within double quotsset adtext {     "Best file compression around: 'DEL *.*' = 100% compression"     "If debugging is the process of removing bugs, then programming must be the process of putting them in."     "Doctor : A Person Who Kills Your Ills By Pills, And Kills You With His Bills."}set notnick "$botnick" set notnick [string tolower ${nick}]if {![info exists {ald}]} {  global notnick chan topic-at- adtext  set ald 1  timer ${topic-at-} printing}proc printing {} {  global notnick chan topic-at- adtext  set printochan [lindex $adtext [rand [llength $adtext]]]      putquick "TOPIC $chan :$printochan"  timer ${topic-at-} printing}</code></pre></div>Thanks...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6915">Romeyo</a> — Sun Dec 11, 2005 3:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
