<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>bot</title>
  <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/tags/bot"/>
  <link rel="self" type="application/atom+xml" href="http://tumbleweed.org.za/taxonomy/term/31/atom/feed"/>
  <id>http://tumbleweed.org.za/taxonomy/term/31/atom/feed</id>
  <updated>2007-12-29T19:20:16+00:00</updated>
  <entry>
    <title>Bashbot</title>
    <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/code/bashbot" />
    <id>http://tumbleweed.org.za/code/bashbot</id>
    <published>2007-12-29T19:19:53+00:00</published>
    <updated>2007-12-29T19:20:16+00:00</updated>
    <author>
      <name>tumbleweed</name>
    </author>
    <category term="bash" />
    <category term="bot" />
    <category term="code" />
    <category term="Howto" />
    <category term="irc" />
    <summary type="html"><![CDATA[<p>Bashbot was originally an idea and bash snippet from <a href="http://vhata.net/" title="Vhata">Jonathan Hitchcock</a>. I took it and bastardised it&nbsp;beyond&nbsp;imagination.</p>

<p>It&#8217;s a fully-featured, modular <span class="caps"><span class="caps">IRC</span></span>&nbsp;bot.</p>

<p>The modules come in&nbsp;2&nbsp;types:</p>

<ul>
<li>Commands are matched by filename. I.e. &#8220;bot: foo bar&#8221; will run the command <span class="geshifilter"><code class="geshifilter-text">foo</code></span> if&nbsp;it&nbsp;exists.</li>
<li>Regex commands are matched by a regex in the file&#8217;s first line (commented). So a regex-command beginning with <span class="geshifilter"><code class="geshifilter-text"># ^(.*) is( also)? (.*)$</code></span> will be executed if you try and set a factoid with &#8220;bot: Spinach is&nbsp;a&nbsp;vegtable&#8221;</li>
</ul>

<p>Included&nbsp;modules:</p>

<ul>
<li>announce</li>
</ul>
    ]]></summary>
    <content type="html"><![CDATA[<p>Bashbot was originally an idea and bash snippet from <a href="http://vhata.net/" title="Vhata">Jonathan Hitchcock</a>. I took it and bastardised it beyond&nbsp;imagination.</p>

<p>It&#8217;s a fully-featured, modular <span class="caps">IRC</span>&nbsp;bot.</p>

<p>The modules come in 2&nbsp;types:</p>

<ul>
<li>Commands are matched by filename. I.e. &#8220;bot: foo bar&#8221; will run the command <code>foo</code> if it&nbsp;exists.</li>
<li>Regex commands are matched by a regex in the file&#8217;s first line (commented). So a regex-command beginning with <code># ^(.*) is( also)? (.*)$</code> will be executed if you try and set a factoid with &#8220;bot: Spinach is a&nbsp;vegtable&#8221;</li>
</ul>

<p>Included&nbsp;modules:</p>

<ul>
<li>announce</li>
<li>builtin</li>
<li>chanops</li>
<li>factoid</li>
<li>google</li>
<li>insult</li>
<li>karma</li>
<li>logs</li>
<li>say</li>
<li>tell</li>
</ul>

<h2>Security</h2>

<p>This bot is a security nightmare. I haven&#8217;t found any mistakes, but you&#8217;d be insane to run this in anything but the most strictly-controlled&nbsp;environment.</p>

<h2>Performance</h2>

<p>No optimisation included&nbsp;:-)</p>
    ]]></content>
  </entry>
</feed>
