Example #1
0
 function bz_test($clsFile)
 {
     $botzilla = new botzilla(0, 0, 0, 0);
     $botzilla->logging_enable(0);
     $botzilla->addZiggi($clsFile);
     $botzilla->webdebug = true;
     if (!is_object(current($botzilla->ziggis))) {
         exit;
     }
     $this->z =& current($botzilla->ziggis);
 }
Example #2
0
Configuration file and executable
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software. It may be freely modified and redistributed, even in commercial applications.
*/
set_time_limit(0);
error_reporting(E_ALL ^ E_NOTICE);
require_once "cls/botzilla.class.php";
// server info
$bot_config = array('server' => "irc.freenode.net", 'port' => "6667", 'nick' => "mybot", 'realname' => "mybot", 'hostname' => 'yourhost', 'servername' => 'yourserver', 'diss' => true);
// channels to join after it connects.
$channels = array('#botzilla');
// if your nick is registered, give the passwd here.
//$nick_passwd = 'irc_passwd';
// instantiate bot class
$botzilla = new botzilla($bot_config);
// turn logging on (off by default)
$botzilla->logging(true);
// nicks that have a higher level of access (to functions like QUIT)
$owners = array('yournick', 'anothernick');
// your nick(s) here
// set owners
$botzilla->setOwner($owners);
/** "ziggis", ( the command plugins in ziggi/ ) get added here.
You can add singulars with addZiggi(), but addZiggis() is basically the same thing in bulk.
Items added with no additional params, or are added as strings instead of arrays, assume that the user permission
set as BZUSER_DEFAULT, which I keep at BZUSER_REGISTERED.

# no params
addZiggi('somefile.class.php');