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

	<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>2019-09-05T02:05:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pauschi]]></name></author>
		<updated>2019-09-05T02:05:17-04:00</updated>

		<published>2019-09-05T02:05:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107789#p107789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107789#p107789"/>
		<title type="html"><![CDATA[Reacting to all commands *?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107789#p107789"><![CDATA[
Thank you sir! Im gonna try it:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12817">Pauschi</a> — Thu Sep 05, 2019 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2019-09-03T14:04:44-04:00</updated>

		<published>2019-09-03T14:04:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107787#p107787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107787#p107787"/>
		<title type="html"><![CDATA[Reacting to all commands *?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107787#p107787"><![CDATA[
Hello,<br>The PUB binding does not support wildcard characters such as *. For this, you'll have to use the PUBM binding instead.<br><br>Keep in mind though, that the syntax for PUBM is slightly different to PUB;<br>The mask is matched against "#channel text", so you'll probably want to use something like this:<div class="codebox"><p>Code: </p><pre><code>bind pubm -|- "% !*" raffle</code></pre></div>Also, if the command (raffle, in this case) returns 1, the message will not be logged.<br>Finally, if you've enabled exclusive bindings, this will prevent any PUB binds matching the text-line from actually triggering.<br><br>As for responding with the input-text, this is available in the last parameter passed to the function;<div class="codebox"><p>Code: </p><pre><code>proc raffle {nick host handle channel text} {  puthelp "PRIVMSG $channel :$text"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Sep 03, 2019 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pauschi]]></name></author>
		<updated>2019-09-03T11:11:56-04:00</updated>

		<published>2019-09-03T11:11:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107786#p107786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107786#p107786"/>
		<title type="html"><![CDATA[Reacting to all commands *?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107786#p107786"><![CDATA[
Hello!<br><br>my simple script is working so far, unfortunally it only reacts when someone writes !raffle into the chat.<br><div class="codebox"><p>Code: </p><pre><code>bind PUB -|- !raffle raffleproc raffle { nick host hand chan arg } {putserv "PRIVMSG $chan :!raffle"}</code></pre></div>Can it be triggered with every text what starts with "!" ?<br><br>I tried <div class="codebox"><p>Code: </p><pre><code>bind PUB -|- !* all</code></pre></div> but it doesnt work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>And it should PRIVMSG to the chan with excatly THAT what was inputted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12817">Pauschi</a> — Tue Sep 03, 2019 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
