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

	<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>2014-10-02T14:01:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2014-10-02T14:01:37-04:00</updated>

		<published>2014-10-02T14:01:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103233#p103233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103233#p103233"/>
		<title type="html"><![CDATA[How to do string match for IRC Action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103233#p103233"><![CDATA[
Try restart the bot and se what happens<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Thu Oct 02, 2014 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[shipmark33]]></name></author>
		<updated>2014-10-01T15:54:53-04:00</updated>

		<published>2014-10-01T15:54:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103232#p103232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103232#p103232"/>
		<title type="html"><![CDATA[Mohsin]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103232#p103232"><![CDATA[
I want it to make it only respond to one user, but even when other users besides "JaySon" say "*goes*sleep*" or "*want*sleep*", the bot still responds this message in the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12443">shipmark33</a> — Wed Oct 01, 2014 3:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2014-08-08T22:45:10-04:00</updated>

		<published>2014-08-08T22:45:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103140#p103140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103140#p103140"/>
		<title type="html"><![CDATA[How to do string match for IRC Action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103140#p103140"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION reply:action  proc reply:action {nick uhost hand dest key text} {     if {![string match -nocase "*goes*sleep*" $text] || \    ![string match -nocase "*want*sleep*" $text] &amp;&amp; $dest eq $::botnick} { return }    if {[string equal -nocase "JaySon" $nick]} {  puthelp "PRIVMSG $dest :$nick, don't fall asleep" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Fri Aug 08, 2014 10:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JaySon]]></name></author>
		<updated>2014-08-08T21:11:27-04:00</updated>

		<published>2014-08-08T21:11:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103139#p103139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103139#p103139"/>
		<title type="html"><![CDATA[How to do string match for IRC Action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103139#p103139"><![CDATA[
Thank you<br><br>I'm having another issues:<br><div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION reply:actionproc reply:action {nick uhost hand dest key text} {    if {[string match -nocase "*goes*sleep*" $text] || \       [string match -nocase "*want*sleep*" $text] &amp;&amp; $dest eq "JaySon"} {            puthelp "PRIVMSG $dest :$nick, don't fall asleep"      }}</code></pre></div>I want it to make it only respond to one user, but even when other users besides "JaySon" say "*goes*sleep*" or "*want*sleep*", the bot still responds this message in the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12421">JaySon</a> — Fri Aug 08, 2014 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2014-08-08T21:14:57-04:00</updated>

		<published>2014-08-08T21:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103138#p103138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103138#p103138"/>
		<title type="html"><![CDATA[How to do string match for IRC Action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103138#p103138"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION reply:action  proc reply:action {nick uhost hand dest key text} {     if {[string match -nocase "*goes*sleep*" $text] || \    [string match -nocase "*want*sleep*" $text] &amp;&amp; $dest ne $::botnick} {      puthelp "PRIVMSG $dest :$nick, don't fall asleep" }}</code></pre></div> <a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#binda" class="postlink">http://www.eggheads.org/support/egghtml ... html#binda</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Fri Aug 08, 2014 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JaySon]]></name></author>
		<updated>2014-08-08T17:23:58-04:00</updated>

		<published>2014-08-08T17:23:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103137#p103137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103137#p103137"/>
		<title type="html"><![CDATA[How to do string match for IRC Action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103137#p103137"><![CDATA[
I want to do something like:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * reply:actionproc reply:action {nick host hand chan txt} {  set txt [string tolower $txt]  if {([string match -nocase "goes to sleep" $txt] || [string match -nocase "wants to sleep" $txt]) &amp;&amp; ![isbotnick $nick]} {  puthelp "PRIVMSG $chan :$nick, don't fall asleep"  }  return 0}</code></pre></div>But, I want this command to be performed only when a user says: /me goes to sleep or /me wants to sleep (\001ACTION \001), and not a PRIVMSG. How can I change the string match so it works only with ACTION, and not PRIVMSG?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12421">JaySon</a> — Fri Aug 08, 2014 5:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
