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

	<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-03-01T03:38:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[levian]]></name></author>
		<updated>2005-03-01T03:38:46-04:00</updated>

		<published>2005-03-01T03:38:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47091#p47091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47091#p47091"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47091#p47091"><![CDATA[
This is a request.<br><br>And I need a script which changes the topic on seperate times. To do not slave others to much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> I try my best to write it alone, but if someone will write it for me, then I won't have a problem with that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6012">levian</a> — Tue Mar 01, 2005 3:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-02-28T22:28:31-04:00</updated>

		<published>2005-02-28T22:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47088#p47088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47088#p47088"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47088#p47088"><![CDATA[
I thought this section of the forum was for full scripts only.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Feb 28, 2005 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-28T21:32:19-04:00</updated>

		<published>2005-02-28T21:32:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47079#p47079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47079#p47079"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47079#p47079"><![CDATA[
I don't understand you have so many binds. If you want, why just dont you make the script execute after every 30 minutes with a timer? Rather than having so many binds?<br><br>If you really want them to be at full hour and half hour intervals create the first bind after that loop a timer for 30 minutes. Also making sure the timer already doesn't exist (for the next time the bind will activate which is the next day, same time)<br><br>And as for your error:<br><br>I think it is because of you are using special characters such as, geändert in which "ä" is one.<br><br>You can use this character in hex format: "\xE4"<br><br>Take a look at this post:<br><a href="http://forum.egghelp.org/viewtopic.php?t=7348" class="postlink">http://forum.egghelp.org/viewtopic.php?t=7348</a><br><br>For character listings goto:<br><a href="http://www.torsten-horn.de/techdocs/ascii.htm" class="postlink">http://www.torsten-horn.de/techdocs/ascii.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Feb 28, 2005 9:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[levian]]></name></author>
		<updated>2005-02-28T18:32:50-04:00</updated>

		<published>2005-02-28T18:32:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47072#p47072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47072#p47072"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47072#p47072"><![CDATA[
I tried it with your first inpression and some other commands.<br><br>But now I get an error:<br>Invalid command "Ä "<br><br>if you want to see the script:<br><br><a href="http://www.linpy.de/topic.tcl" class="postlink">http://www.linpy.de/topic.tcl</a><br><br>I wanted to use a file to save the topics which are set by triggers like <br>!set0200 for 2o'clock.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6012">levian</a> — Mon Feb 28, 2005 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[levian]]></name></author>
		<updated>2005-02-28T03:18:55-04:00</updated>

		<published>2005-02-28T03:18:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47024#p47024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47024#p47024"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47024#p47024"><![CDATA[
Thanks that would be a great help.<br><br>I'll try it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6012">levian</a> — Mon Feb 28, 2005 3:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-27T21:15:53-04:00</updated>

		<published>2005-02-27T21:15:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47019#p47019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47019#p47019"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47019#p47019"><![CDATA[
My suggestion would be to use bind time. A static timer for changing the topic at very specific times in a day. And you can declare a simple 2-3 line proc to call that bind and make it set the topic.<br><br>#This would be for 4 o'clock (pm - afternoon) if I am correct:<div class="codebox"><p>Code: </p><pre><code>#Set the channel where the bot should change the topicset channel_name "#channelname"#Set the topic for 4pm hereset 4oclock_topic "topic here... bla bla bla"bind time - "00 16 * * *" 4oclock:topicproc 4oclock:topic {min hour day month year} { global channel_name 4oclock_topic  if {[botisop $channel_name] &amp;&amp; ($4oclock_topic != "")} {   putquick "TOPIC $channel_name :$4oclock_topic" -next   }}</code></pre></div>The wildcard "*" means any day for day, any month for month and any year for the year field. You only have to change the minute and hour for the bind, keeping in mind they are used in a 24hr format, not in the 12hr format.<br><br>The rest can be just defined topics, either you can have 3 different procs for the 3 different times or include all in one. The simpler and easier one would be to make all individual.<br><blockquote class="uncited"><div>TIME (stackable)<br><br>bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<br><br>Description: allows you to schedule procedure calls at certain times. mask matches 5 space separated integers of the form: "minute hour day month year". minute, hour, day, month have a zero padding so they are exactly two characters long; year is extended to four characters in the same way. flags are ignored.</div></blockquote>Else if you want the bot to switch the topic when a moderator switches his nick just use "bind nick".<br><br>Here is an example of when a moderator changes his nick<br><div class="codebox"><p>Code: </p><pre><code>#Set a common nick matching the moderator's nick - (wildcards are allowed)#(Note: If you want to enter a precise nick, leave this as empty and try the setting below)set matchnick1 "dj*"#Set the exact moderator's nick - (nick should be precise, case is ignored)#(Note: Only the above or this setting can be used)set matchnick2 ""#Set the topic hereset chantopic "bla bla bla......... my topic here"bind nick - * badnick:changeproc badnick:change {nick uhost hand chan newnick} { global botnick matchnick1 matchnick2 chantopic  if {([string equal -nocase $botnick $nick])} { return 0 }  if {($matchnick1 != "") &amp;&amp; ([string match -nocase *$matchnick1* $newnick]} {   putquick "TOPIC $chan :$chantopic" -next  }  elseif {($matchnick2 != "") &amp;&amp; ([string equal -nocase $matchnick2 $newnick]} {   putquick "TOPIC $chan :$chantopic" -next   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Feb 27, 2005 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[levian]]></name></author>
		<updated>2005-02-27T08:26:33-04:00</updated>

		<published>2005-02-27T08:26:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46993#p46993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46993#p46993"/>
		<title type="html"><![CDATA[Set Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46993#p46993"><![CDATA[
Hello, I'm new to tcl and I don't know much about it.<br>But for my channel I need a eggbot tcl script that allows a time dependend topicchange.<br><br>E.g.: at 4 o'clock one show begins with moderator 1, at 6 o'clock another show with another name and another moderator, then at 8 o'clock another show with another mod and so on.<br><br>The topic should be set when a Show begins, the setdj funktion of the shoutcast script is already modified by me so that a nickchange automatically changes the dj and perhaps this could be useful in this script. So that when the mod changes his nick the topic will change.<br><br>The next 4 show should be written in the topic.<br><br>If anyone could help me with a time based script which refers to a manually filled database it would be a big help for me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6012">levian</a> — Sun Feb 27, 2005 8:26 am</p><hr />
]]></content>
	</entry>
	</feed>
