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

	<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>2010-08-11T17:25:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-11T17:25:11-04:00</updated>

		<published>2010-08-11T17:25:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93885#p93885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93885#p93885"/>
		<title type="html"><![CDATA[Bot action response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93885#p93885"><![CDATA[
Yes, that is what the last part is for. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> You have to use a different bind/method to capture /me action text. The first two bits of code I showed was to make the bot send a /me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Wed Aug 11, 2010 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gasak]]></name></author>
		<updated>2010-08-11T01:02:13-04:00</updated>

		<published>2010-08-11T01:02:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93870#p93870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93870#p93870"/>
		<title type="html"><![CDATA[Bot action response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93870#p93870"><![CDATA[
Thanks for the response. But what i mean is not the bot that reply with action. But the bot will reply to to channel when some one on channel do an action (/me) that mention the bot name.<br><br>For example the bot name is "v1rus". Than i make an action on channel such "/me v1rus is crazy" then the bot will react for the action because the bot name mention on the action.<br><br>please advice.<br><br>many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11310">gasak</a> — Wed Aug 11, 2010 1:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-10T17:14:19-04:00</updated>

		<published>2010-08-10T16:46:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93856#p93856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93856#p93856"/>
		<title type="html"><![CDATA[Bot action response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93856#p93856"><![CDATA[
Does that script work? It doesn't look like it would. There is no check to see if $oldreplytime exists. Also, you have a var set after the last close brace, which isn't doing anything at all.<br><br>I will answer the questions first. There are two ways to send an action to the channel. You can use <div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chan :\001ACTION does something.\001"</code></pre></div> or, if you have have alltools.tcl loaded: <div class="codebox"><p>Code: </p><pre><code>putact $chan "does a /me action"</code></pre></div> is a shortcut for that essentially. Second, if you want this wo work on actions, you must also change the bind and procs: <br><div class="codebox"><p>Code: </p><pre><code>bind ctcp * ACTION pub_crazyproc pub_crazy {nick host hand chan kw arg} {  if {[string match -nocase "*v1rus?crazy*" $arg]} { ... }</code></pre></div>So you'll need to make a few changes there in order to make that work. I would suggest fixing the proc itself first though. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>See here as well: <a href="http://www.eggheads.org/support/egghtml/1.6.15/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a> That whole page is very useful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Tue Aug 10, 2010 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ashoq]]></name></author>
		<updated>2010-08-10T15:34:58-04:00</updated>

		<published>2010-08-10T15:34:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93852#p93852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93852#p93852"/>
		<title type="html"><![CDATA[Bot action response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93852#p93852"><![CDATA[
im a newbie in TCL but ...<br><br>for ACTION (/me)<br>change this:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :$crazyline" </code></pre></div>to this:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :ACTION: $crazyline" </code></pre></div>if isnt work try this script (from fishbot.tcl):<br><div class="codebox"><p>Code: </p><pre><code>bind pubm -|- "% crazy*" crazybot_crazybind pubm -|- "% hello*" crazybot_hello#crazyproc crazybot_crazy { nick host hand chan text } {    putmsg $chan "action: $nick are the real crazy" }#helloproc crazybot_hello{ nick host hand chan text } {    putmsg $chan "action: says hello to $nick " }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11287">Ashoq</a> — Tue Aug 10, 2010 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gasak]]></name></author>
		<updated>2010-08-10T00:51:30-04:00</updated>

		<published>2010-08-10T00:51:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93840#p93840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93840#p93840"/>
		<title type="html"><![CDATA[Bot action response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93840#p93840"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set crazybib {"$nick are the real crazy"}bind pubm - *v1rus?crazy* pub_crazyproc pub_crazy {nick uhost handle chan args} {   global crazybib oldreplytime botnick      set replytime [unixtime]   if { $replytime - $oldreplytime  &gt; 7} {      set crazyline [lindex $crazybib [rand [llength $crazybib]]]      puthelp "PRIVMSG $chan :$crazyline"      set oldreplytime $replytime   }}set oldreplytime 0</code></pre></div>Can someone help me on change that script above to ACTION? means of somone on channels using action (/me) with mention the bot name with specific word the bot will answer also with the specific word to encounter the person.<br><br>Thanks a lot before for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11310">gasak</a> — Tue Aug 10, 2010 12:51 am</p><hr />
]]></content>
	</entry>
	</feed>
