Example #1
0
(
	'access'=>BZUSER_REGISTERED,
	'cron'=>array
	(
		'cmd'=>'your_command',
		'interval'=>3600,
		'channel'=>'#channel_name'
	)
));

This would send 'your_command' through your class every hour from start time.
Because the default is to send return messages back to "where the requeswt came from", we declare a channel/nick here.
The alarm plugin is better if you want repeating events at an absolute time.
*/
// load ziggi plugins
$botzilla->addZiggis(array(array('reg.class.php', array('access' => BZUSER_ANYONE)), array('operator.class.php', array('access' => BZUSER_OWNER))));
// start the bot!
while ($botzilla->reconnect) {
    // connect to network
    if (!$botzilla->connect()) {
        exit;
    }
    // a message should have already printed
    // join specified channels
    if (is_array($channels)) {
        foreach ($channels as $c) {
            $botzilla->join($c, TRUE);
        }
    }
    // identify with nickserv (change name as needed).
    if ($nick_passwd) {