Wollabot, an IRC bot framework in Php

Wollabot is the easiest way to create your own IRC bot. The framework is entirely built in Php and you need very few tuning to make it work. (Good documentation too…)

Here is an example of a (very) simple bot:

class MyModule extends Wollabot_Module {
  function MyModule () {
    $this->bind_prefix('say_hello', 'hello');
  }

  function say_hello ($data) {
    $this->send_privmsg($data['channel'], "Hello ".$data['nick']);
  }
}
$wollabot->register_module("MyModule");
This entry was posted in Php and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>