cvs: pearbot / PEARbot.php
[email protected] ("Mirco 'meebey' Bauer") Fri, 25 Jul 2003 17:08:27 -0000
| Newsgroups | php.pear.bot |
|---|---|
| Message-ID | <cvsmeebey1059152907@cvsserver> |
meebey Fri Jul 25 13:08:27 2003 EDT
Modified files:
/pearbot PEARbot.php
Log:
- added module botcmds.
Index: pearbot/PEARbot.php
diff -u pearbot/PEARbot.php:1.14 pearbot/PEARbot.php:1.15
--- pearbot/PEARbot.php:1.14 Fri Jul 25 12:04:58 2003
+++ pearbot/PEARbot.php Fri Jul 25 13:08:26 2003
@@ -1,7 +1,7 @@
#!/home/meebey/php
<?php
/**
- * $Id: PEARbot.php,v 1.14 2003/07/25 16:04:58 meebey Exp $
+ * $Id: PEARbot.php,v 1.15 2003/07/25 17:08:26 meebey Exp $
*
* PEARbot
* this is an IRC service bot for #pear written in PHP
@@ -174,6 +174,7 @@
$irc->setLogdestination(SMARTIRC_FILE);
$irc->setLogfile('./PEARbot.log');
+$irc->setModulepath($config['modules_path']);
$irc->setChannelSyncing(true);
$irc->setDebug(SMARTIRC_DEBUG_ALL);
$irc->setUseSockets(true);
@@ -181,6 +182,7 @@
$irc->setAutoReconnect(true);
$irc->setReceiveTimeout(600);
$irc->setTransmitTimeout(600);
+$irc->loadModule('botcmds');
$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);