cvs: pearbot / PEARbot.php

From: Date: Sat, 26 Jul 2003 11:01:19 +0000
Subject: cvs: pearbot / PEARbot.php
Groups: php.pear.bot 
Request: Send a blank email to pear-bot+get-28@lists.php.net to get a copy of this message
meebey Sat Jul 26 07:01:19 2003 EDT Modified files: /pearbot PEARbot.php Log: - added loading the pearcmd module. Index: pearbot/PEARbot.php diff -u pearbot/PEARbot.php:1.15 pearbot/PEARbot.php:1.16 --- pearbot/PEARbot.php:1.15 Fri Jul 25 13:08:26 2003 +++ pearbot/PEARbot.php Sat Jul 26 07:01:19 2003 @@ -1,7 +1,7 @@ #!/home/meebey/php <?php /** - * $Id: PEARbot.php,v 1.15 2003/07/25 17:08:26 meebey Exp $ + * $Id: PEARbot.php,v 1.16 2003/07/26 11:01:19 meebey Exp $ * * PEARbot * this is an IRC service bot for #pear written in PHP @@ -182,7 +182,10 @@ $irc->setAutoReconnect(true); $irc->setReceiveTimeout(600); $irc->setTransmitTimeout(600); + $irc->loadModule('botcmds'); +$irc->loadModule('pearcmds'); + $irc->registerActionhandler(SMARTIRC_TYPE_JOIN, '.*', $bot, 'onjoin'); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL|SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^!who ', $bot, 'who'); $irc->connect('efnet.skynet.be', 6668);

« previous php.pear.bot (#28) next »