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

	<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-10-17T12:03:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-10-13T07:13:38-04:00</updated>

		<published>2006-10-13T07:13:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67113#p67113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67113#p67113"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67113#p67113"><![CDATA[
Ok I did what you said but now when I type:<br><br>@trigger It simply does nothing.<br>!trigger Works great, ofcourse.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Fri Oct 13, 2006 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-10-10T13:42:24-04:00</updated>

		<published>2006-10-10T13:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67073#p67073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67073#p67073"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67073#p67073"><![CDATA[
Dude, you rock!<br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Tue Oct 10, 2006 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2006-10-10T16:05:41-04:00</updated>

		<published>2006-10-10T11:10:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67060#p67060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67060#p67060"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67060#p67060"><![CDATA[
<blockquote class="uncited"><div>But when someone types !something - It activates both procedures! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"></div></blockquote>Sounds like you have some old binds left over from an earlier experiment.<br><strong class="text-strong">.restart</strong> your bot to get rid of the old binds.<br><br>Here's another way to do what you're doing using an array (not tested as usual <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># don't inclide the prefix character in the array keys# because it is trimmed off in the stuff proc to allow# having several prefixes for the same commandarray set stuff {omg {what did your god do?}lol {what are you laughing at?}help {help yourself.}hello {hi there!}}bind pubm - "% !*" stuffbind pubm - "% @*" stuffproc stuff {n u h t a} {global stuffif {[scan $a "%*c%s" w]&amp;&amp;[info exists stuff($w)]} {puthelp "PRIVMSG $t :$stuff($w)"}}# to make it work with private messages, add this:bind msgm - !* pstuffproc pstuff {n u h a} {stuff $n $u $h $n $a}</code></pre></div><blockquote class="uncited"><div>Also is there a command like, setchaninfo but to set a user's default info line instead of just the info line for that channel?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>setuser $hand info "whatever"</code></pre></div>EDIT: messed up scan pattern <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Oct 10, 2006 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-10-10T04:40:24-04:00</updated>

		<published>2006-10-10T04:40:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67051#p67051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67051#p67051"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67051#p67051"><![CDATA[
I made a list out of the possible triggers then used lsearch to check if what the user entered was a trigger.<br><br>But now.<br><br>I have two triggers:<br><br>bind pubm - "% !*" stuff:private<br>bind pubm - "% @*" stuff:public<br><br>But when someone types !something - It activates both procedures! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><br><br>Also is there a command like, setchaninfo but to set a user's default info line instead of just the info line for that channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Tue Oct 10, 2006 4:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-09T22:15:52-04:00</updated>

		<published>2006-10-09T22:15:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67035#p67035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67035#p67035"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67035#p67035"><![CDATA[
You're better off using if's to test the input for specific keywords, otherwise people will type all kinds of random junk and you'll soon find your bot behaving badly.<br><br>There are plenty of example scripts for making triggers, using either a specific comamnd with pub, or using wildcards with pubm. Check the tcl archive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Oct 09, 2006 10:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-10-09T06:06:13-04:00</updated>

		<published>2006-10-09T06:06:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67024#p67024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67024#p67024"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67024#p67024"><![CDATA[
Yes but there is lots of different possible !commands I could have. I used this:<br><br>bind pubm - "% !*" proc:stuff<br><br>And that worked.<br>But I need a way so I can store all the possible commands after that, I tried in a text file but It didn't quite work, can someone help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Mon Oct 09, 2006 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-10-08T19:46:51-04:00</updated>

		<published>2006-10-08T19:46:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67022#p67022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67022#p67022"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67022#p67022"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !randomthing random:stuff</code></pre></div>... etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Oct 08, 2006 7:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-10-08T14:06:25-04:00</updated>

		<published>2006-10-08T14:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67014#p67014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67014#p67014"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67014#p67014"><![CDATA[
Try with 'pubm' then.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 08, 2006 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-10-17T12:03:39-04:00</updated>

		<published>2006-10-08T06:31:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67012#p67012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67012#p67012"/>
		<title type="html"><![CDATA[[SOLVED YO] Help with a bind]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67012#p67012"><![CDATA[
bind pub - ! random:stuff<br><br>But it only works when someone types !<br>I want it to work when someone types<br>!randomthing <br>!stuff<br>!lollllers<br>Basically when someone types anything after it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Sun Oct 08, 2006 6:31 am</p><hr />
]]></content>
	</entry>
	</feed>
