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

	<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-05-22T15:26:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-22T15:26:08-04:00</updated>

		<published>2004-05-22T15:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36530#p36530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36530#p36530"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36530#p36530"><![CDATA[
<blockquote class="uncited"><div>strikelight, sorry, i must be quite stupid, because i don't see what you mean. i just edited part of a different script, have done so before, and it's the same, so i thought it should have worked. and i have checked the tcl-commands.doc, alas the info there is very thin, and as someone else has put it, if you don't know what you're doing the docs aren't much help</div></blockquote>It says that the trigger is matched against the channel followed by the text... you had as the match trigger:<br><br>"i love you"<br><br>when it should have been "#channel i love you"...<br>Making it more generic, would be: "% i love you"<br><br>Was quite clear in tcl-commands.doc...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 22, 2004 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bruhv]]></name></author>
		<updated>2004-05-22T03:30:16-04:00</updated>

		<published>2004-05-22T03:30:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36517#p36517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36517#p36517"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36517#p36517"><![CDATA[
strikelight, sorry, i must be quite stupid, because i don't see what you mean. i just edited part of a different script, have done so before, and it's the same, so i thought it should have worked. and i have checked the tcl-commands.doc, alas the info there is very thin, and as someone else has put it, if you don't know what you're doing the docs aren't much help<br><br>myself, i prefer to learn by example, find a script that works, play with it for my own use, and write myself when i think i understand it. i rewrote what i have here, by studying another tcl, and now have it binded to "i" with different results for "i love you" "i hate you" etc<br><br>here's what i now have, works like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>bind pub -|- i loveu_replyproc loveu_reply {nick host hand chan text} {if {$text == "love you"} {putquick "PRIVMSG $chan :\00304don't be gay\003"} elseif {$text == "love you too"} {putquick "PRIVMSG $chan :\001ACTION \00304blushes\003\001"putserv "PRIVMSG $chan :\00310stop it, you're embarrassing me\003"} elseif {$text == "feel sick"} {putserv "PRIVMSG $chan :\00310you are sick!\003"} elseif {$text == "don't know"} {putserv "PRIVMSG $chan :\00310that figures\003"} elseif {$text == "can't"} {putserv "PRIVMSG $chan :\00310yes, you can!\003"} elseif {$text == "want sex"} {putserv "PRIVMSG $chan :\00310ROFLOLOLOFRFROFLOL\003"} elseif {$text == "hate you"} {putserv "PRIVMSG $chan :\00310well you don't exactly turn me on either!\003"}}</code></pre></div>Monty: '\00310 text \003' makes the text mirc colour 10, which for me is pale blue, every script i use is the same colour<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4804">bruhv</a> — Sat May 22, 2004 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-22T01:09:32-04:00</updated>

		<published>2004-05-22T01:09:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36513#p36513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36513#p36513"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36513#p36513"><![CDATA[
if you check tcl-commands.doc like you should have in the beginning, you would see that a pubm binding is matched against the channel name, followed by the text... you did not specify a channel pattern in your pubm binding...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 22, 2004 1:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T20:55:07-04:00</updated>

		<published>2004-05-21T20:55:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36508#p36508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36508#p36508"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36508#p36508"><![CDATA[
Right.  That's what I figured.  Double check that "pubm" bind and see if that shouldn't be a straight "pub".  <br><br>Monty<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-21T20:51:28-04:00</updated>

		<published>2004-05-21T20:51:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36507#p36507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36507#p36507"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36507#p36507"><![CDATA[
If you just want the bot to respond to certain text popped into the channel something like this would work:<br><br>set iwant "*i want * bot*"<br><br>bind pubm - * checktext<br><br>proc checktext {nick uhost hand chan text} {<br>if {[string match $::iwant [string tolower $text]]} {<br>    putchan $chan "No you can't!"<br>        }<br>}<br><br><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=3646">Alchera</a> — Fri May 21, 2004 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T20:13:30-04:00</updated>

		<published>2004-05-21T20:13:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36506#p36506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36506#p36506"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36506#p36506"><![CDATA[
Seems like it should work fine, although I'm no expert.  I do question a few things though.  Do I understand it that you want that action on a private message?  I thought that's what binding it to "pubm" did.  Also, in the second line, what does \00310 mean?<br><br>Monty<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 8:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bruhv]]></name></author>
		<updated>2004-05-21T17:52:08-04:00</updated>

		<published>2004-05-21T17:52:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36504#p36504</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36504#p36504"/>
		<title type="html"><![CDATA[no response, i don't understand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36504#p36504"><![CDATA[
ok, it's a little lame, but in my mind it should work fine...<div class="codebox"><p>Code: </p><pre><code>bind pubm -|- "i love you too" loveu_replyproc loveu_reply {nick uhost handle chan text} {   putserv "PRIVMSG $chan :\001ACTION \00304blushes\003\001"   putserv "PRIVMSG $chan :\00310stop it!\003" }</code></pre></div>i type in channel 'i love you too'<br>i get nothing from the bot, and no errors in dcc chat<br><br>all my other scripts work fine, i don't understand what i've done wrong <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4804">bruhv</a> — Fri May 21, 2004 5:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
