<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>阳光烂灿的日子 &#187; BotCalk</title>
	<atom:link href="http://www.lerosua.org/tag/botcalk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lerosua.org</link>
	<description>总会遇见</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:44:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>BotCalk</title>
		<link>http://www.lerosua.org/2009/03/botcalk/</link>
		<comments>http://www.lerosua.org/2009/03/botcalk/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:25:58 +0000</pubDate>
		<dc:creator>lerosua</dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[BotCalk]]></category>

		<guid isPermaLink="false">http://www.lerosua.org/?p=404</guid>
		<description><![CDATA[BotCalk是近来我和bones7456搞起的一个项目，目的是丰富jabber聊天室里的聊天环境。 当然也是个学习的过程。主程序改自gloox里的聊天室测试代码。botcalk把聊天室里的消息发送到一个管道，而有个脚本读取消息处理后再发送到另一个管道上。botcalk会循环读这个管道，然后把信息发送出去。 原理有些粗糙，目前就这么实现了发送链接读取网页标题的功能。但bug在于机器人登录后似乎导致聊天室不太正常，吃掉某些人发出的信息。 BotCalk 代码地址在 http://code.google.com/p/botcalk/ ，通过svn取得吧 编译botcalk需要gloox 1.0beta2以上版本， 需要的文件： cat  bot.conf &#160; jid=xxxx@gmail.com passwd=xxxxxxx server=talk.google.com port=5222 room=linuxcn@conference.jabber.org/myBot 然后执行目录下的bot.sh即可。 以上仅学习参考使用. PS.gentoo的用户在装gloox库的时候记得把gnutls带上，骨头就是没带上死活登录不了，害我查了半天.]]></description>
			<content:encoded><![CDATA[<p>BotCalk是近来我和bones7456搞起的一个项目，目的是丰富jabber聊天室里的聊天环境。</p>
<p>当然也是个学习的过程。主程序改自gloox里的聊天室测试代码。botcalk把聊天室里的消息发送到一个管道，而有个脚本读取消息处理后再发送到另一个管道上。botcalk会循环读这个管道，然后把信息发送出去。</p>
<p>原理有些粗糙，目前就这么实现了发送链接读取网页标题的功能。但bug在于机器人登录后似乎导致聊天室不太正常，吃掉某些人发出的信息。</p>
<p>BotCalk 代码地址在<a href="http://code.google.com/p/botcalk/"> http://code.google.com/p/botcalk/</a> ，通过svn取得吧</p>
<p>编译botcalk需要gloox 1.0beta2以上版本，</p>
<p>需要的文件：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span>  bot.conf
&nbsp;
<span style="color: #007800;">jid</span>=xxxx<span style="color: #000000; font-weight: bold;">@</span>gmail.com
<span style="color: #007800;">passwd</span>=xxxxxxx
<span style="color: #007800;">server</span>=talk.google.com
<span style="color: #007800;">port</span>=<span style="color: #000000;">5222</span>
<span style="color: #007800;">room</span>=linuxcn<span style="color: #000000; font-weight: bold;">@</span>conference.jabber.org<span style="color: #000000; font-weight: bold;">/</span>myBot</pre></div></div>

<p>然后执行目录下的bot.sh即可。</p>
<p>以上仅学习参考使用.<br />
PS.gentoo的用户在装gloox库的时候记得把gnutls带上，骨头就是没带上死活登录不了，害我查了半天.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lerosua.org/2009/03/botcalk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

