<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; bot</title>
	<atom:link href="http://www.deanlee.cn/tag/bot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>英汉翻译机器人:en-cn@35.cn(Jabber translator bot)</title>
		<link>http://www.deanlee.cn/programming/translator_bot_for_jabber/</link>
		<comments>http://www.deanlee.cn/programming/translator_bot_for_jabber/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 13:13:24 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[bot]]></category>

		<category><![CDATA[jabber]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/translator_bot_for_jabber/</guid>
		<description><![CDATA[en-cn@35.cn是一个英汉/汉英翻译机器人，你可以用任何支持Jabber/xmpp的客户端，比如Gtalk,将机器人添加为好友，然后就能通过与他聊天来获得英汉单词、短句的翻译。目前还不支持全文翻译，下个版本我会增加这个功能：

]]></description>
			<content:encoded><![CDATA[<p><a href="mailto:en-cn@35.cn">en-cn@35.cn</a>是一个英汉/汉英翻译机器人，你可以用任何支持Jabber/xmpp的客户端，比如Gtalk,将机器人添加为好友，然后就能通过与他聊天来获得英汉单词、短句的翻译。目前还不支持全文翻译，下个版本我会增加这个功能：</p>
<p><a href="http://www.deanlee.cn/wp-content/uploads/2009/07/image7.png" rel="lightbox"><img title="image" style="display: inline" height="215" alt="image" src="http://www.deanlee.cn/wp-content/uploads/2009/07/image_thumb3.png" width="407" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/translator_bot_for_jabber/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to create a jabber chat bot based on AIML,the C# way.</title>
		<link>http://www.deanlee.cn/programming/how-to-create-a-jabber-chat-bot-based-on-aimlthe-c-way/</link>
		<comments>http://www.deanlee.cn/programming/how-to-create-a-jabber-chat-bot-based-on-aimlthe-c-way/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 05:30:55 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[A.L.I.C.E]]></category>

		<category><![CDATA[AIML]]></category>

		<category><![CDATA[bot]]></category>

		<category><![CDATA[chat bot]]></category>

		<category><![CDATA[jabber]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/how-to-create-a-jabber-chat-bot-based-on-aimlthe-c-way/</guid>
		<description><![CDATA[I have created a jabber chat bot based on on the A.L.I.C.E(Artificial Linguistic Internet Computer Entity) and AIML(Artificial Intelligence Markup Language).which is named alice@35.cn,you can add alice@35.cn to your contact list and chat with her anytime:
 
It&#8217;s really simple to build your own alice chat bot by using agsXMPP and AIMLBot.The following sections is my [...]]]></description>
			<content:encoded><![CDATA[<p>I have created a jabber chat bot based on on the <a href="http://www.alicebot.org/">A.L.I.C.E</a>(Artificial Linguistic Internet Computer Entity) and <a href="http://www.alicebot.org/aiml.html">AIML</a>(Artificial Intelligence Markup Language).which is named alice@35.cn,you can add alice@35.cn to your contact list and chat with her anytime:</p>
<p><a href="http://www.deanlee.cn/wp-content/uploads/2009/07/image2.png" rel="lightbox"><img title="image" style="display: inline" height="188" alt="image" src="http://www.deanlee.cn/wp-content/uploads/2009/07/image-thumb2.png" width="402" /></a> </p>
<p>It&#8217;s really simple to build your own alice chat bot by using <a href="http://www.ag-software.de/index.php?page=agsxmpp-sdk" target="_blank">agsXMPP</a> and <a href="http://aimlbot.sourceforge.net/" target="_blank">AIMLBot</a>.The following sections is my quick and dirty tour on how to do it(You should know how to use agsXMPP and AIMLBot first):</p>
<p>After downloading and compiling the agsXMPP and AIMLBot,add them as References to your bot project:</p>
<p><img height="46" alt="image" src="http://www.deanlee.cn/wp-content/uploads/2008/09/windowslivewriterhowtocreateajabberchatbotbasedonaimlthe-be0cimage-5.png" width="131" /></p>
<p>Initialize AIMLBot :</p>
<pre class="prettyprint">AIMLbot.Bot myBot = new AIMLbot.Bot();
myBot.loadSettings();
myBot.loadAIMLFromFiles();</pre>
<p>Response chat message in XmppClientConnection&#8217;s OnMessage Event:</p>
<pre class="prettyprint">AIMLbot.Request request = new Request(msg.Body, GetUser(msg.From.Bare), myBot);
AIMLbot.Result reply = myBot.Chat(request);
agsXMPP.protocol.client.Message replyMsg = new agsXMPP.protocol.client.Message();
replyMsg.Type = MessageType.chat;
replyMsg.To = msg.From;
replyMsg.Body = reply.Output; 

XmppCon.Send(replyMsg); </pre>
<p>a simple implementation of GetUser:</p>
<pre class="prettyprint">protected AIMLbot.User GetUser(String jid)
{
   Hashtable myHash = Hashtable.Synchronized(userSessions);
   AIMLbot.User user = (AIMLbot.User)myHash[jid];
   if (user == null)
   {
       user = new AIMLbot.User(jid, myBot);
       myHash[jid] = user;
   }
   return user;
} </pre>
<p>that&#8217;s all,it&#8217;s really easy and simple,huh?</p>
<p>PS:you can download free AIML sets from <a href="http://aitools.org/Free_AIML_sets" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/how-to-create-a-jabber-chat-bot-based-on-aimlthe-c-way/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I have created a MSN Chat bot: alice@35.cn</title>
		<link>http://www.deanlee.cn/technology/i-have-created-a-msn-chat-bot-alice35cn/</link>
		<comments>http://www.deanlee.cn/technology/i-have-created-a-msn-chat-bot-alice35cn/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 15:12:23 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[35.com]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[A.L.I.C.E]]></category>

		<category><![CDATA[AIML]]></category>

		<category><![CDATA[bot]]></category>

		<category><![CDATA[chat]]></category>

		<category><![CDATA[msn]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/i-have-created-a-msn-chat-bot-alice35cn/</guid>
		<description><![CDATA[I Have created a MSN chat bot based on the A.L.I.C.E(Artificial Linguistic Internet Computer Entity) and AIML(Artificial Intelligence Markup Language).you can add alice@35.cn&#160;to your contact and &#160;chat with her all day long on MSN messager:)

]]></description>
			<content:encoded><![CDATA[<p>I Have created a MSN chat bot based on the <a href="http://www.alicebot.org/">A.L.I.C.E</a>(Artificial Linguistic Internet Computer Entity) and <a href="http://www.alicebot.org/aiml.html">AIML</a>(Artificial Intelligence Markup Language).you can add <strong>alice@35.cn</strong>&nbsp;to your contact and &nbsp;chat with her all day long on MSN messager:)</p>
<p><a atomicselection="true" href="http://www.deanlee.cn/wp-content/uploads/2007/08/windowslivewriterihavecreatedamsnchatbotalice35.cn-1466aalice2.jpg" rel="lightbox"><img width="540" height="491" src="http://www.deanlee.cn/wp-content/uploads/2007/08/windowslivewriterihavecreatedamsnchatbotalice35.cn-1466aalice-thumb2.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/technology/i-have-created-a-msn-chat-bot-alice35cn/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

