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

	<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>2006-12-26T10:21:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fussel1979]]></name></author>
		<updated>2006-12-26T10:21:38-04:00</updated>

		<published>2006-12-26T10:21:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69256#p69256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69256#p69256"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69256#p69256"><![CDATA[
Sure!<br><br>I've right now managed to solve my problem by myself!<br><br>It's not the best solution but a workaround and meets my needs.<br><br>The script looks like that<br><div class="codebox"><p>Code: </p><pre><code>bind evnt - init-server starttimerset topic "Testtopic here!"set topicchan "#testchan"proc starttimer {type} {  timer 1 [list settopic $type]}proc settopic {type} {  global topicchan topic  putserv "TOPIC $topicchan :$topic"}</code></pre></div>Thanks alot!<br><br>Greetz,<br>Fussel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8527">Fussel1979</a> — Tue Dec 26, 2006 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-26T09:52:37-04:00</updated>

		<published>2006-12-26T09:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69255#p69255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69255#p69255"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69255#p69255"><![CDATA[
Did you change <strong class="text-strong">topicchan</strong> to your channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 26, 2006 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fussel1979]]></name></author>
		<updated>2006-12-26T06:39:34-04:00</updated>

		<published>2006-12-26T06:39:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69252#p69252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69252#p69252"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69252#p69252"><![CDATA[
Hi Sr_Fz,<br><br>i've checked it out! It doesn't work as it should.<br><br>If i paste your whole snipet to my test.tcl file, which is loaded through the eggdrop config, nothing happens when a mode change (e.g. someone get @) occurs. Only when i remove the whole if-statement <div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $targ]....} {</code></pre></div> something happens when a user enters the channel and get @.<br><br>Greetz,<br>Fussel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8527">Fussel1979</a> — Tue Dec 26, 2006 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-12-25T19:15:32-04:00</updated>

		<published>2006-12-25T19:15:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69244#p69244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69244#p69244"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69244#p69244"><![CDATA[
If available, simply setting 'keeptopic' would solve any problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Dec 25, 2006 7:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-25T18:57:51-04:00</updated>

		<published>2006-12-25T18:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69241#p69241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69241#p69241"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69241#p69241"><![CDATA[
The mode bind triggers whenever a mode change occurs even if it's done by or to the bot. And to know that the one being oped is the bot itself, I've added<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $targ]....} {</code></pre></div>check. Did you test it, or just came to a conclusion by yourself?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 25, 2006 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fussel1979]]></name></author>
		<updated>2006-12-25T17:56:37-04:00</updated>

		<published>2006-12-25T17:56:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69237#p69237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69237#p69237"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69237#p69237"><![CDATA[
Thank's for the hints!<br><br>Sadly non of them meets my needs!<br><br>I'll try to explain my wish more detailed.<br><br>Guess there is a IRC channel, which is abandoned nearly the whole day.<br><br>The bot is the only one, who's on the channel. Then there is a netsplit or the shellprovider reboots his systems. After the system is up again and running, the bot connects to the irc, joins the channel - which is formed just in time - and finds, that there is no topic! Now i want the bot to set a topic, when he enters the channel and find, no topic is set.<br><br>The trigger<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +o" changetopic</code></pre></div>only set's the the topic, when ANOTHER user gets @. But this event isn't fired, when the bot "creates" the channel.<br><br>Are you with me?<br><br>So, how can i get the bot do, what i want him to?<br><br>Other advises?<br><br>I've experimented with some other triggers. e.g. the following trigger<br><div class="codebox"><p>Code: </p><pre><code>bind join - * changetopic</code></pre></div>acts like a "greeting"-trigger an changes the topic every time a user joins the channel.<br><br>The next one<br><div class="codebox"><p>Code: </p><pre><code>bind topc - * changetopic</code></pre></div>is fired every time, when the topic is changed.<br><br>Is there a trigger to be used, or should i use a timer?<br><br>tia<br>Fussel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8527">Fussel1979</a> — Mon Dec 25, 2006 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smash]]></name></author>
		<updated>2006-12-24T18:24:51-04:00</updated>

		<published>2006-12-24T18:24:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69223#p69223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69223#p69223"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69223#p69223"><![CDATA[
<a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-chris-topic.htm" class="postlink">http://www.egghelp.org/tclhtml/3478-4-0 ... -topic.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8041">smash</a> — Sun Dec 24, 2006 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-24T13:51:42-04:00</updated>

		<published>2006-12-24T13:51:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69221#p69221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69221#p69221"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69221#p69221"><![CDATA[
If you looked closer at the other scripts, you would've noticed the binds which trigger procedures on events (documented in Tcl-commands.doc).<div class="codebox"><p>Code: </p><pre><code>set topicchan #channelset chantopic "Your topic here"bind mode - "* +o" changetopicproc changetopic {nick uhost hand chan mc targ} { global topicchan chantopic if {[isbotnick $targ] &amp;&amp; [string equal -nocase $topicchan $chan]} {  putserv "TOPIC $chan :$chantopic" }}</code></pre></div>This will let the bot change the topic whenever it gains op.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 24, 2006 1:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fussel1979]]></name></author>
		<updated>2006-12-24T10:38:08-04:00</updated>

		<published>2006-12-24T10:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69219#p69219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69219#p69219"/>
		<title type="html"><![CDATA[Automaticly set static topic: is it realy that complicated?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69219#p69219"><![CDATA[
Hi all,<br><br>i'm new to tcl and to eggdrop, too!<br><br>I managed to setup eggdrop on a linux vhost and get it working.<br><br>Now i'm stumbeling around while trying to get the bot setting the topic of a channel, everytime he join's the channel.<br><br>I read some scripts, that perform similiar operations, copy some - thought essential - lines from other scripts and edited them to solve the problem, but it doesn't work.<br><br>My script actualy looks like this:<br><div class="codebox"><p>Code: </p><pre><code>global chan topicset chan "#testchan"set topic "test topic!"  if {[botonchan $chan] &amp;&amp; [botisop $chan]} {   putquick "TOPIC $chan :$topic"   }</code></pre></div>I realize that the script seems to do nothing, cause at execution time, the bot maybe isn't connected to the server or isn't on the channel yet.<br><br>Is there something like a triggerevent that is fired, when the bot is connected and in the channel?<br><br>Another idea is, to try to solve the problem with a "one-time"-timer.<br><br>I can't believe, that it should be that complicated to automaticly set a static topic. I read the documentation and searched the internet without success. Maybe i don't see the forest for the trees.<br><br>Can anyone please light up the dark?<br><br>tia<br>Fussel<br><br>...please excuse my poor english! I'm not used to speak/write the language due to i'm from germany...<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=8527">Fussel1979</a> — Sun Dec 24, 2006 10:38 am</p><hr />
]]></content>
	</entry>
	</feed>
