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

	<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-11-15T15:31:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-15T15:31:45-04:00</updated>

		<published>2005-11-15T15:31:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57464#p57464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57464#p57464"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57464#p57464"><![CDATA[
i just need it so if anyone wishes to view the topic in the channel they can just do a certain command like !topic and the bot will message them it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> (sorry if im not making sense)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Tue Nov 15, 2005 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-15T15:29:34-04:00</updated>

		<published>2005-11-15T15:29:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57463#p57463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57463#p57463"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57463#p57463"><![CDATA[
If i understood you good:<br><div class="codebox"><p>Code: </p><pre><code>bind pub n "!topic" pub:topicset topic1 "topic 1"set topic2 "topic 2"set topic3 "topic 3"set topicchan "#yourchan"proc pub:topic {nick uhost hand chan text} {   switch -- [string tolower [lindex $text 0]] {   "1" {       putquick "TOPIC $::topicchan :$::topic1"       putquick "NOTICE $nick :Topic for channel $::topicchan is now $::topic1"          return    }    "2" {       putquick "TOPIC $::topicchan :$::topic2"       putquick "NOTICE $nick :Topic for channel $::topicchan is now $::topic2"        return    }    "3" {       putquick "TOPIC $::topicchan :$::topic3"       putquick "NOTICE $nick :Topic for channel $::topicchan is now $::topic3"        return    }  } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Tue Nov 15, 2005 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-15T14:21:53-04:00</updated>

		<published>2005-11-15T14:21:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57458#p57458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57458#p57458"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57458#p57458"><![CDATA[
ye when someone says does !topic in a channel i would like the bot to either msg the channel the topic or notice the person , just wondered if anyone could show me how to do this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Tue Nov 15, 2005 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-15T08:03:26-04:00</updated>

		<published>2005-11-15T08:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57445#p57445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57445#p57445"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57445#p57445"><![CDATA[
Seems we want a variation on the original request. The topic not only being set but also when !topic is used the topic on the channel is sent to the user who triggered it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 15, 2005 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-15T04:17:55-04:00</updated>

		<published>2005-11-15T04:17:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57436#p57436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57436#p57436"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57436#p57436"><![CDATA[
Don't understand what you want.<br><br>Please explain it better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Tue Nov 15, 2005 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-15T04:02:47-04:00</updated>

		<published>2005-11-15T04:02:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57433#p57433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57433#p57433"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57433#p57433"><![CDATA[
sorry o be a pain, is thier anyway i can have  public command like !topic and it shows the topic either in a message or notice on the channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Tue Nov 15, 2005 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-14T15:29:13-04:00</updated>

		<published>2005-11-14T15:29:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57404#p57404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57404#p57404"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57404#p57404"><![CDATA[
You are right, didn't use TCL for some time now (only C++) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Nov 14, 2005 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-14T13:52:03-04:00</updated>

		<published>2005-11-14T13:52:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57401#p57401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57401#p57401"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57401#p57401"><![CDATA[
thank you works now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Mon Nov 14, 2005 1:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-14T06:39:27-04:00</updated>

		<published>2005-11-14T06:39:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57391#p57391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57391#p57391"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57391#p57391"><![CDATA[
I guess ]Kami[ got used to C or something <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code>bind pub n "!topic" pub:topicset topic1 "topic 1"set topic2 "topic 2"set topic3 "topic 3"set topicchan "#yourchan"proc pub:topic {nick uhost hand chan text} {   switch -- [string tolower [lindex $text 0]] {   "1" {       putquick "TOPIC $::topicchan :$::topic1"       return    }    "2" {       putquick "TOPIC $::topicchan :$::topic2"       return    }    "3" {       putquick "TOPIC $::topicchan :$::topic3"       return    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 14, 2005 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-13T13:31:26-04:00</updated>

		<published>2005-11-13T13:31:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57379#p57379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57379#p57379"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57379#p57379"><![CDATA[
getting this error now :/<br><br> &lt;ToF&gt; [11:53] Tcl error [pub:topic]: wrong # args: should be "switch ?switches? string pattern body ... ?default body?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Sun Nov 13, 2005 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-13T12:47:42-04:00</updated>

		<published>2005-11-13T12:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57378#p57378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57378#p57378"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57378#p57378"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub:topic {nick uhost hand chan text}{</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>proc pub:topic {nick uhost hand chan text} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 13, 2005 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-13T11:37:18-04:00</updated>

		<published>2005-11-13T11:37:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57377#p57377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57377#p57377"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57377#p57377"><![CDATA[
i get this when i try to rehash the bot<br><br>[15:36] &lt;ToF&gt; [07:35] Tcl error in file 'bot.conf':<br>[15:36] &lt;ToF&gt; [07:35] wrong # args: should be "proc name args body"<br>[15:36] &lt;ToF&gt;     while executing<br>[15:36] &lt;ToF&gt; "proc pub:topic {nick uhost hand chan text}"<br>[15:36] &lt;ToF&gt;     (file "scripts/Topic.tcl" line 9)<br>[15:36] &lt;ToF&gt;     invoked from within<br>[15:36] &lt;ToF&gt; "source scripts/Topic.tcl"<br>[15:36] &lt;ToF&gt;     (file "bot.conf" line 177)<br>[15:36] &lt;ToF&gt; [07:35] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Sun Nov 13, 2005 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-13T11:42:40-04:00</updated>

		<published>2005-11-13T11:12:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57375#p57375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57375#p57375"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57375#p57375"><![CDATA[
This should work:<br><div class="codebox"><p>Code: </p><pre><code>bind pub n "!topic" pub:topicset topic1 "topic 1"set topic2 "topic 2"set topic3 "topic 3"set topicchan "#yourchan"proc pub:topic {nick uhost hand chan text}{   switch -- [string tolower [lindex $text 0]]    {   "1"    {       putquick "TOPIC $::topicchan :$::topic1"       return    }       "2"    {       putquick "TOPIC $::topicchan :$::topic2"       return    }       "3"    {       putquick "TOPIC $::topicchan :$::topic3"       return    }  }}      </code></pre></div>Use command !topic 1 or !topic 2 or !topic 3 in any channel you want and bot will set topic for channel you defined in variable $topicchan.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Sun Nov 13, 2005 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-13T10:59:17-04:00</updated>

		<published>2005-11-13T10:59:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57371#p57371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57371#p57371"/>
		<title type="html"><![CDATA[Preset topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57371#p57371"><![CDATA[
i would like to have say 3 preset topics which could be used by a command in 1 chat room to change another chat rooms topic, any idea how i would do this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Sun Nov 13, 2005 10:59 am</p><hr />
]]></content>
	</entry>
	</feed>
