config-sample.php
author Dan
Tue, 20 Jan 2009 22:08:07 -0500
changeset 51 508400fc5282
parent 8 0acb8d9a3194
permissions -rw-r--r--
Major change to permissions backend - performs whois check (only supported blitzed and freenode right now) and advanced permissions supported.

<?php

// Rename this to config.php and run php ./enanobot.php to start.

$server = 'irc.freenode.net';
$nick = 'EnanoBot';
$pass = '';
$name = 'Enano CMS logging/message bot';
$user = 'enano';
$permissions = array(
    'your' => array('admin', 'alert'),
    'nick' => array('admin', 'alert'),
    'list' => array('echo', 'suspend', 'pm', 'channel' => array('#enano', '#ubuntu')),
    'here' => array('echo', 'suspend', 'pm', 'shutdown', 'channel' => array('#enano')),
  );
$mysql_host = 'localhost';
$mysql_user = '';
$mysql_pass = '';
$mysql_dbname = '';
$channels = array('#mychan', '#yourchan', '#4chan');

?>