<?xml version="1.0"?>
<rss version="2.0">
	<channel>
	<title>Newest Comments</title>
	<link>http://www.hawkee.com</link>
	<description>Hawkee.com Comment Tracker</description>
	<language>en-us</language>

	<item>
		<title>genie commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>genie</author>
		<link>http://www.hawkee.com/snippet/6306/#c62328</link>
		<description><![CDATA[FordLawnmower, I can't thank you enough. I'm halfway to where I want to be, and may even be inspired enough to attempt a script all of my own - if I get this working!<br />
<br />
Thanks again :)]]></description>
		<pubDate>Thu, 15 Oct 2009 17:51:03 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c62326</link>
		<description><![CDATA[It's actually simple genie and there is an example built into the script.<br />
To start take a look at the first section of code. (The on text event)<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">On *&#58;Text&#58;*&#58;#&#58; &#123;<br />
&nbsp; if &#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;&#41; &#123;<br />
&nbsp; &nbsp; var %text $strip&#40;$1-&#41;<br />
&nbsp; &nbsp; if &#40;$me isin %text&#41; &#123; hadd Pandora $+&#40;$network,$chan&#41; $puttok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,$wildsite,6,32&#41; &#125;<br />
&nbsp; &nbsp; if &#40;shutup isin %text&#41; &amp;&amp; &#40;$nick isop $chan || $gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,6,32&#41; == $wildsite&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; .msg $chan I will not be silenced forever &#58;P<br />
&nbsp; &nbsp; &nbsp; hadd Pandora $+&#40;$network,$chan&#41; $puttok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,0,6,32&#41;<br />
&nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; if &#40;$gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,6,32&#41; == $wildsite&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; var %sockname $+&#40;pandora,$nick,$ticks&#41;<br />
&nbsp; &nbsp; &nbsp; sockopen %sockname $gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,1,32&#41; 80<br />
&nbsp; &nbsp; &nbsp; sockmark %sockname $+&#40;$chan,_,04&lt;,07,$nick,04&gt;&#41; $fixurl&#40;$wildsite&#41; $fixurl&#40;$replace&#40;%text,$me,$gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,5,32&#41;&#41;&#41; $hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &#125;<br />
&#125;</td>	</tr></table><span class="postbody"><br />
You will see that right after the script determines that there is a pandoras bot active for the current channel it creates a variable %text </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">var %text $strip&#40;$1-&#41;</td>	</tr></table><span class="postbody"><br />
This is what you will use for evaluation to find things such as display stats.<br />
<br />
If you scroll down a couple of lines you will see a section where I have done exactly what you are trying to do. In this case I am just looking for a word match for shutup.<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">&nbsp; &nbsp; if &#40;shutup isin %text&#41; &amp;&amp; &#40;$nick isop $chan || $gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,6,32&#41; == $wildsite&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; .msg $chan I will not be silenced forever &#58;P<br />
&nbsp; &nbsp; &nbsp; hadd Pandora $+&#40;$network,$chan&#41; $puttok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,0,6,32&#41;<br />
&nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &#125;</td>	</tr></table><span class="postbody"><br />
Here is a simple example </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">&nbsp; &nbsp; if &#40;display stats isin %text&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; .msg $chan I have been connected to $network for $uptime&#40;server,1&#41;<br />
&nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &#125;</td>	</tr></table><span class="postbody"><br />
If you add this example to the on text event, the result should look like this.<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">On *&#58;Text&#58;*&#58;#&#58; &#123;<br />
&nbsp; if &#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;&#41; &#123;<br />
&nbsp; &nbsp; var %text $strip&#40;$1-&#41;<br />
&nbsp; &nbsp; if &#40;$me isin %text&#41; &#123; hadd Pandora $+&#40;$network,$chan&#41; $puttok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,$wildsite,6,32&#41; &#125;<br />
&nbsp; &nbsp; if &#40;shutup isin %text&#41; &amp;&amp; &#40;$nick isop $chan || $gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,6,32&#41; == $wildsite&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; .msg $chan I will not be silenced forever &#58;P<br />
&nbsp; &nbsp; &nbsp; hadd Pandora $+&#40;$network,$chan&#41; $puttok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,0,6,32&#41;<br />
&nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; if &#40;display stats isin %text&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; .msg $chan I have been connected to $network for $uptime&#40;server,1&#41;<br />
&nbsp; &nbsp; &nbsp; return<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; if &#40;$gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,6,32&#41; == $wildsite&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; var %sockname $+&#40;pandora,$nick,$ticks&#41;<br />
&nbsp; &nbsp; &nbsp; sockopen %sockname $gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,1,32&#41; 80<br />
&nbsp; &nbsp; &nbsp; sockmark %sockname $+&#40;$chan,_,04&lt;,07,$nick,04&gt;&#41; $fixurl&#40;$wildsite&#41; $fixurl&#40;$replace&#40;%text,$me,$gettok&#40;$hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;,5,32&#41;&#41;&#41; $hget&#40;Pandora,$+&#40;$network,$chan&#41;&#41;<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &#125;<br />
&#125;</td>	</tr></table><span class="postbody"><br />
I hope this helps you genie.<br />
Be careful editing the code but don't be afraid. Always backup your working code to a text file before editing it and you won't have any problems.]]></description>
		<pubDate>Thu, 15 Oct 2009 15:49:55 -0500</pubDate>
	</item>
	<item>
		<title>genie commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>genie</author>
		<link>http://www.hawkee.com/snippet/6306/#c62324</link>
		<description><![CDATA[I'm loving this script, and have been playing around with it. I've been struggling with a modification I'm trying to do. What I want my bot to be able to do is to give responses to known inputs - and if they don't match, only then go to Pandora to get a response.<br />
IE, if a user says &quot;display stats&quot;, my bot will have code similar to:<br />
<br />
on *:TEXT:display stats:?:/msg $chan The server has been up for 5 hours<br />
else<br />
get response from Pandora<br />
<br />
It's not as easy as it seems! I'm struggling.. lol. I can do it my modifying my bots AIML via Pandora site, but I'd rather have it done at the irc script level for various reasons. Can anyone help?]]></description>
		<pubDate>Thu, 15 Oct 2009 12:08:04 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c62211</link>
		<description><![CDATA[@Paran0ia This script is written to be loaded into a second mirc client so it's no supposed to echo to it's own screen. This is done to save resources because most people run lots of scripts like this on the same client.<br />
If you would like to see the conversation you can try <a href="http://pastebin.com/f63f7e6b0" target="_blank" class="postlink">this version</a>]]></description>
		<pubDate>Mon, 12 Oct 2009 15:34:22 -0500</pubDate>
	</item>
	<item>
		<title>Paran0ia commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Paran0ia</author>
		<link>http://www.hawkee.com/snippet/6306/#c62204</link>
		<description><![CDATA[For some reason the bot's replies aren't echoing on my screen. All I see is the one-sided conversations people are having with it. I didn't see any comments from anyone else having this issue, so I think it may have something to do with the server I'm on (Oasiz.net), however I'm sure a simple echo command would fix it up; unfortunately I don't know anything about sockets or socks, so I don't know what I'd need to echo.<br />
<br />
Any help would be appreciated!]]></description>
		<pubDate>Mon, 12 Oct 2009 14:08:33 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c62203</link>
		<description><![CDATA[@Cracker200 Yes. I tested it with 6.21.<br />
@genie I don't know about any msn gateway but I will add support for PM. I've had that request several times now so I'll update the script.<br />
I'll post it in a few days after I have thoroughly tested it.]]></description>
		<pubDate>Mon, 12 Oct 2009 12:13:32 -0500</pubDate>
	</item>
	<item>
		<title>Jethro_ commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Jethro_</author>
		<link>http://www.hawkee.com/snippet/6306/#c62196</link>
		<description><![CDATA[When you change the on text event to work for PM, you will need to either make a variable for $chan or replace $chan with the actual channel name, as in &quot;#channel&quot;, for example. In PM, $chan becomes $null.]]></description>
		<pubDate>Mon, 12 Oct 2009 10:59:02 -0500</pubDate>
	</item>
	<item>
		<title>Atr commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Atr</author>
		<link>http://www.hawkee.com/snippet/6306/#c62193</link>
		<description><![CDATA[@genie, this is a vague idea .. but you could change </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">On *&#58;Text&#58;*&#58;#&#58; &#123;</td>	</tr></table><span class="postbody">to</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">On *&#58;Text&#58;*&#58;?&#58; &#123;</td>	</tr></table><span class="postbody"><br />
<br />
No idea if that would work, though.]]></description>
		<pubDate>Mon, 12 Oct 2009 09:44:07 -0500</pubDate>
	</item>
	<item>
		<title>genie commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>genie</author>
		<link>http://www.hawkee.com/snippet/6306/#c62182</link>
		<description><![CDATA[Fantastic piece of code, Mr Lawnmower (lol, cool nick too).<br />
<br />
I'm having fun playing with the bots, but have been trying so hard to have the bot just talking to people that PM it, in PM. <br />
<br />
Ie, someone pm's the bot, and that triggers Alice to start a conversation in the PM window. I'll keep tinkering, but maybe you could give me some pointers? Thanks in advance! BTW, I saw the comment above about changing $chan to $nick, and that doesn't work for me. Basically what I'm trying to do is have Alice talk to my msn buddies via the BitlBee IRC/MSN gateway. I'm pulling my hair out.. lol]]></description>
		<pubDate>Mon, 12 Oct 2009 06:47:32 -0500</pubDate>
	</item>
	<item>
		<title>Cracker200 commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Cracker200</author>
		<link>http://www.hawkee.com/snippet/6306/#c62178</link>
		<description><![CDATA[Ford Does you're script work with Version 6.31 ?]]></description>
		<pubDate>Mon, 12 Oct 2009 04:13:05 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c62175</link>
		<description><![CDATA[No Problem c0ax :)]]></description>
		<pubDate>Sun, 11 Oct 2009 20:50:11 -0500</pubDate>
	</item>
	<item>
		<title>c0ax commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>c0ax</author>
		<link>http://www.hawkee.com/snippet/6306/#c62155</link>
		<description><![CDATA[Thanks a bunch FordLawnmower. For the snippet &amp; the speedy response. I do appreciate it. :)]]></description>
		<pubDate>Sun, 11 Oct 2009 16:34:33 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c62154</link>
		<description><![CDATA[Try <a href="http://pastebin.com/f3132f6dc" target="_blank" class="postlink">This version</a> c0ax<br />
I really should just make that an option ;/]]></description>
		<pubDate>Sun, 11 Oct 2009 15:58:53 -0500</pubDate>
	</item>
	<item>
		<title>c0ax commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>c0ax</author>
		<link>http://www.hawkee.com/snippet/6306/#c62153</link>
		<description><![CDATA[I got this script working in a small channel but which has people coming &amp; going alot. I saw some of the screenshots above that show the bot talking without showing the person of focus' nick in front of what it (the bot) says. <br />
<br />
I would prefer it to be that way for my channel. Is there any chance of getting the previous version or can you make that something that can be toggled on/off.<br />
<br />
Nice useful snippet either way &amp; i think something to help break up the boredom of a smaller channel when noone's around.]]></description>
		<pubDate>Sun, 11 Oct 2009 15:43:10 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c61941</link>
		<description><![CDATA[Updated Warrior1968. Just use the new code at the <a href="http://www.hawkee.com/snippet/6306/#top" target="_blank" class="postlink">Top of This Page</a><br />
It should look like this now.<br />
11:11:40 &lt;<span style="color: purple">Ford&gt; hello RotSnot</span><br />
11:11:49 &lt;<span style="color: darkcyan">RotSnot&gt; </span><span style="color: red">&lt;</span><span style="color: orange">Ford</span><span style="color: red">&gt;</span> <span style="color: black">Hey you.</span><br />
I hope this is what you were looking for.]]></description>
		<pubDate>Sun, 04 Oct 2009 11:13:20 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c61940</link>
		<description><![CDATA[@Warrior1968 Yea it's possible but I will have to change several lines of code.<br />
I'll post an update in about 15 minutes.]]></description>
		<pubDate>Sun, 04 Oct 2009 11:04:00 -0500</pubDate>
	</item>
	<item>
		<title>Warrior1968 commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Warrior1968</author>
		<link>http://www.hawkee.com/snippet/6306/#c61939</link>
		<description><![CDATA[I like your snippet it;s great fun :D just a quick Q? is there away to add a $nick or something soooooo it makes it more authentic and takes out the &quot;unknown person&quot; part?]]></description>
		<pubDate>Sun, 04 Oct 2009 07:39:34 -0500</pubDate>
	</item>
	<item>
		<title>Brownjam0 commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Brownjam0</author>
		<link>http://www.hawkee.com/snippet/6306/#c61936</link>
		<description><![CDATA[yay it worked thanks for the help]]></description>
		<pubDate>Sun, 04 Oct 2009 04:30:04 -0500</pubDate>
	</item>
	<item>
		<title>Brownjam0 commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>Brownjam0</author>
		<link>http://www.hawkee.com/snippet/6306/#c61935</link>
		<description><![CDATA[ill try that :)]]></description>
		<pubDate>Sun, 04 Oct 2009 04:23:11 -0500</pubDate>
	</item>
	<item>
		<title>FordLawnmower commented on mIRC Snippet: Pandoras Talking Bot</title>
		<author>FordLawnmower</author>
		<link>http://www.hawkee.com/snippet/6306/#c61899</link>
		<description><![CDATA[Ok Brownjam0. From the beginning.<br />
<ul><br />
<li> You have to load this script into a second client.(You will not be able to see the bot talking from the bot's screen.) <br />
<li> Once you have the script loaded you will have to right click a channel screen and turn activate a bot for that channel.<br />
</ul><br />
<img src="http://i37.tinypic.com/2r5aqdu.jpg" border="0" /><br />
<br />
<img src="http://i38.tinypic.com/avh1kk.jpg" border="0" /><br />
<ul><br />
<li> To get the bot started talking you will have to say the bots Exact irc nickname in a channel where you have already activated a bot.<br />
</ul><br />
[Picture below is from the bot]<br />
<img src="http://i33.tinypic.com/15qoj1s.jpg" border="0" /><br />
[Picture below from a 2nd client]<br />
<img src="http://i34.tinypic.com/35kuzd4.jpg" border="0" /><br />
<br />
I hope this helps :)<br />
If this doesn't help you Brownjam0, you will have to give me a little more information.]]></description>
		<pubDate>Sat, 03 Oct 2009 21:24:24 -0500</pubDate>
	</item>

	</channel>
</rss>


