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

	<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>2004-09-18T07:04:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-18T07:04:11-04:00</updated>

		<published>2004-09-18T07:04:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40988#p40988</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40988#p40988"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40988#p40988"><![CDATA[
That stands also for } { " and \ you will need to put an extra \ infront of those as well besides the [ and ] if you encounter them in any script, so the script doesn't choke on special characters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Sep 18, 2004 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-17T19:27:17-04:00</updated>

		<published>2004-09-17T19:27:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40986#p40986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40986#p40986"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40986#p40986"><![CDATA[
Ok well one last problem below in the code: <br><br>bind pub -|- .commands commands<br><br>proc commands {nick host handle chan text} {<br>putserv "NOTICE $nick :[ Commands]-[ .news .website .etc ]"<br>}<br><br>When I try to start the bot with brackets in its reply it gives me an error and doesnt run, but when I remove the brackets and just have the message the bot runs and starts fine and works. How do I use brackets in the bots message?<br><br><br>**EDIT** I received help on this already<br><br>Solution: Those []'s = inline execution statement (function call, returns the results. If you want to use brackets, use \[ and \]<p>Statistics: Posted by Guest — Fri Sep 17, 2004 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-16T20:56:17-04:00</updated>

		<published>2004-09-16T20:56:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40971#p40971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40971#p40971"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40971#p40971"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Sep 16, 2004 8:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-16T18:17:16-04:00</updated>

		<published>2004-09-16T18:17:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40966#p40966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40966#p40966"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40966#p40966"><![CDATA[
yea thats what I needed exactly, thanks.<p>Statistics: Posted by Guest — Thu Sep 16, 2004 6:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-16T00:03:39-04:00</updated>

		<published>2004-09-16T00:03:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40958#p40958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40958#p40958"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40958#p40958"><![CDATA[
Well then use:<br><div class="codebox"><p>Code: </p><pre><code>putserv "NOTICE $nick :Your Notice"</code></pre></div>To notice the user who triggered the command.<br><blockquote class="uncited"><div>I'd just like it to notice the person that uses the command and only in that 1 channel out of 3. They use it in.</div></blockquote>Be clear.<br>Well the above command will notice the person who uses that command. The notice command is private and has nothing todo with channels. <br><br>Then whats the use of saying you want it to notice that user in only that 1 channel out of 3? What is that suppose to mean?<br><br>Notices are of two types, either channel notices or private notices.<br>- A 'channel notice' is sent on the channel so all users in it can veiw it.<br>- A 'private notice' is sent to the user and has nothing todo with channels.<br><br>If you want to use that command on specific channels, meaning you want the command to trigger on specific channels then use:<br><div class="codebox"><p>Code: </p><pre><code>#### SETTINGS ####Set the channel for this script to work on.set respondchan "#mychannel"#Set the text you want to notice the user with.set respondtext "Hello, how are you?"### SCRIPT ###bind pub -|- .commands commandsproc commands {nick uhost hand chan text} { global respondchan respondtext  if {([string equal -nocase $chan $respondchan]) &amp;&amp; ($respondtext != "")} {  putserv "NOTICE $nick :$respondtext"; return 0  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Sep 16, 2004 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-15T22:24:31-04:00</updated>

		<published>2004-09-15T22:24:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40956#p40956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40956#p40956"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40956#p40956"><![CDATA[
That will notice the whole channel and everyone in it and I'd just like it to notice the person that uses the command and only in that 1 channel out of 3. They use it in.<p>Statistics: Posted by Guest — Wed Sep 15, 2004 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-15T21:48:47-04:00</updated>

		<published>2004-09-15T21:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40955#p40955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40955#p40955"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40955#p40955"><![CDATA[
<blockquote class="uncited"><div>bind pub -|- .commands commands<br><br>proc commands {nick host handle chan text} { <br> putserv "NOTICE $nick :My Message" <br>}<br><br><br>The problem with this is I dont know how to specify the channel I want the bot to only respond in. I have the bot in 3 channels and I would like the bot to respond to those commands only in 1 out of the 3 channels.</div></blockquote>Use $chan from the proc, what else.<br><div class="codebox"><p>Code: </p><pre><code>#Will respond to the channel where the command ".commands" is triggered.putserv "NOTICE $chan :My Message"#Will respond to the channel you will specify it to respond on.putserv "NOTICE #mychannel :My Message"#Conclusion$chan = The channel where the script is triggered on.#channel = Any channel where you want to display your message on.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 15, 2004 9:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-15T21:41:00-04:00</updated>

		<published>2004-09-15T21:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40953#p40953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40953#p40953"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40953#p40953"><![CDATA[
bind pub -|- .commands commands<br><br>proc commands {nick host handle chan text} { <br> putserv "NOTICE $nick :My Message" <br>}<br><br><br>The problem with this is I dont know how to specify the channel I want the bot to only respond in. I have the bot in 3 channels and I would like the bot to respond to those commands only in 1 out of the 3 channels.<p>Statistics: Posted by Guest — Wed Sep 15, 2004 9:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WeiJie]]></name></author>
		<updated>2004-09-08T22:14:33-04:00</updated>

		<published>2004-09-08T22:14:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40729#p40729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40729#p40729"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40729#p40729"><![CDATA[
Thanks alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><blockquote class="uncited"><div><blockquote class="uncited"><div>Random Person: .commands <br>Bot: Available commands are .news - .staff - .website <br>Random Person: .website <br>Bot: Website - <a href="http://www.website.com" class="postlink">www.website.com</a> <br><br>Something like tis... Right now i'm using info's tcl, like when i type...<br>&lt;user&gt; !explain website<br>&lt;bot&gt; the website is http://www.&lt;&gt;.com<br><blockquote class="uncited"><div>Find what?! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"></div></blockquote></div></blockquote>Well, you can always use something like:<br><div class="codebox"><p>Code: </p><pre><code>#Usage: !explain microsoft#Set the word here to match.set explainword "mircosoft"#Set the website matching the word here to display.set explaindef "http://www.microsoft.com/"### SCRIPT ###bind pub n !explain explanationexplanation {nick uhost hand chan text} { global botnick explainword explaindef  if {([string equal -nocase $explainword [lindex $text 0]])} {   putserv "PRIVMSG $chan :The website for $explainword is: $explaindef"; return 0   }}</code></pre></div>Something like this should work if this is what you are trying todo.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4964">WeiJie</a> — Wed Sep 08, 2004 10:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-08T21:03:26-04:00</updated>

		<published>2004-09-08T21:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40725#p40725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40725#p40725"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40725#p40725"><![CDATA[
<blockquote class="uncited"><div>Random Person: .commands <br>Bot: Available commands are .news - .staff - .website <br>Random Person: .website <br>Bot: Website - <a href="http://www.website.com" class="postlink">www.website.com</a> <br><br>Something like tis... Right now i'm using info's tcl, like when i type...<br>&lt;user&gt; !explain website<br>&lt;bot&gt; the website is http://www.&lt;&gt;.com<br><blockquote class="uncited"><div>Find what?! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"></div></blockquote></div></blockquote>Well, you can always use something like:<br><div class="codebox"><p>Code: </p><pre><code>#Usage: !explain microsoft#Set the word here to match.set explainword "mircosoft"#Set the website matching the word here to display.set explaindef "http://www.microsoft.com/"### SCRIPT ###bind pub n !explain explanationexplanation {nick uhost hand chan text} { global botnick explainword explaindef  if {([string equal -nocase $explainword [lindex $text 0]])} {   putserv "PRIVMSG $chan :The website for $explainword is: $explaindef"; return 0   }}</code></pre></div>Something like this should work if this is what you are trying todo.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 08, 2004 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WeiJie]]></name></author>
		<updated>2004-09-08T14:13:09-04:00</updated>

		<published>2004-09-08T14:13:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40717#p40717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40717#p40717"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40717#p40717"><![CDATA[
I knew nothing about scripting/coding. Perhaps nothing to do with reading?<br><blockquote class="uncited"><div><blockquote class="uncited"><div>something like this?<br><div class="codebox"><p>Code: </p><pre><code>set commands "commands are .news ..bla bla"bind pub -|- .commands commandsproc commands {nick host handle chan arg} {global commands putserv "notice $nick :$commands"}</code></pre></div></div></blockquote>try to read next time  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4964">WeiJie</a> — Wed Sep 08, 2004 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[esix]]></name></author>
		<updated>2004-09-08T09:38:14-04:00</updated>

		<published>2004-09-08T09:38:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40707#p40707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40707#p40707"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40707#p40707"><![CDATA[
<blockquote class="uncited"><div>something like this?<br><div class="codebox"><p>Code: </p><pre><code>set commands "commands are .news ..bla bla"bind pub -|- .commands commandsproc commands {nick host handle chan arg} {global commands putserv "notice $nick :$commands"}</code></pre></div></div></blockquote>try to read next time  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5311">esix</a> — Wed Sep 08, 2004 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WeiJie]]></name></author>
		<updated>2004-09-08T08:14:46-04:00</updated>

		<published>2004-09-08T08:14:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40705#p40705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40705#p40705"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40705#p40705"><![CDATA[
Random Person: .commands <br>Bot: Available commands are .news - .staff - .website <br>Random Person: .website <br>Bot: Website - <a href="http://www.website.com" class="postlink">www.website.com</a> <br><br>Something like tis... Right now i'm using info's tcl, like when i type...<br>&lt;user&gt; !explain website<br>&lt;bot&gt; the website is http://www.&lt;&gt;.com<br><blockquote class="uncited"><div>Find what?! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4964">WeiJie</a> — Wed Sep 08, 2004 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-07T22:34:58-04:00</updated>

		<published>2004-09-07T22:34:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40701#p40701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40701#p40701"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40701#p40701"><![CDATA[
Find what?! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 07, 2004 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WeiJie]]></name></author>
		<updated>2004-09-07T22:09:23-04:00</updated>

		<published>2004-09-07T22:09:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40697#p40697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40697#p40697"/>
		<title type="html"><![CDATA[How to make a simple command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40697#p40697"><![CDATA[
Any idea where can I find it? Tried egghelp.org and tclscript's but seems that it doesn't find any tcl that fit my needs... (noob about tcl scripting/coding) ;P<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4964">WeiJie</a> — Tue Sep 07, 2004 10:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
