Created
May 21, 2010 09:08
-
-
Save riaf/408641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'Net/IRC/Client.php'; | |
| class WozozoBot extends Net_IRC_Client | |
| { | |
| protected function on_privmsg($m) { | |
| list($prefix, $msg) = $m->params; | |
| if ($msg == 'wozozo') | |
| $this->privmsg($prefix, 'yudoufu'); | |
| } | |
| } | |
| $bot = new WozozoBot('localhost', 6667, array('user' => 'wozozo2', 'nick' => 'wozozo2')); | |
| $bot->connect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment