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

	<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-08-26T21:10:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-26T21:10:33-04:00</updated>

		<published>2004-08-26T21:10:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40245#p40245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40245#p40245"/>
		<title type="html"><![CDATA[Help With This Auto Response TCL Im Making.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40245#p40245"><![CDATA[
Judging by which, if I think I am correct in what you are trying todo. Here this should do your job no doubt:<br><div class="codebox"><p>Code: </p><pre><code>set respond_words { "lol:Laughs Out Loud" "brb:Be Right Back" } proc check_word {nick uhost hand chan text} {  global respond_words  foreach respond_word $respond_words {   set acronym [lrange [split $respond_word ":"] 0 end]   set acronym_definition [lrange [split $respond_word ":"] 1 end]    if {([string match -nocase *$acronym* $text])} {      set response $acronym_definition     send_response $nick $chan $response      }   }  return 0} proc send_response {nick chan response} {  putquick "PRIVMSG $chan :$response" -next  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 Aug 26, 2004 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-26T14:15:20-04:00</updated>

		<published>2004-08-26T14:15:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40225#p40225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40225#p40225"/>
		<title type="html"><![CDATA[Help With This Auto Response TCL Im Making.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40225#p40225"><![CDATA[
<a href="http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M35" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M35</a><br><br>...though, if all the keywords are single words, you could use an array and make things much faster and simpler.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 26, 2004 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-08-26T14:15:09-04:00</updated>

		<published>2004-08-26T14:15:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40224#p40224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40224#p40224"/>
		<title type="html"><![CDATA[Re: Help With This Auto Response TCL Im Making.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40224#p40224"><![CDATA[
seems like that's doin things the complicated way...why not just make two sets of variables, and do away with spliting $respond_words on the colon?  There is a pretty good "auto responder" tcl available on <a href="http://nerfbendr.cjb.net/" class="postlink">Nerfbendr's</a> website that might help  <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=2706">YooHoo</a> — Thu Aug 26, 2004 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-08-26T12:32:55-04:00</updated>

		<published>2004-08-26T12:32:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40220#p40220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40220#p40220"/>
		<title type="html"><![CDATA[Help With This Auto Response TCL Im Making.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40220#p40220"><![CDATA[
Hi,<br><br>I am making an auto-response tcl and i need your help as i am at a loss.<br><br>This is what i have so far.<br><br>#Bind The Procedure.<br>bind pubm - "*" check_word<br><div class="codebox"><p>Code: </p><pre><code>set respond_words {"lol:laughs out loud""brb:Be Right Back"}proc check_word {nick host handle chan text } {global respond_wordsforeach word $respond_words {if {[string match -nocase "$text" "$word"]} {set words_response [lrange [split $word :] 1 end]send_response $nick $chan $words_response }}return 0 }#Send Response Procproc send_response {nick chan response} {putquick "PRIVMSG $chan :$response" -nextreturn 0 }</code></pre></div>I cant seem to make it respond to the words lol and brb only.<br><br>I need to make it respond to (for ex.) lol and say laughs out loud.<br><br>Can you help me do this.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Thu Aug 26, 2004 12:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
