PHP Classes

File: joker.php

Recommend this page to a friend!
  Classes of Sergei Miami   Joker the IRC bot   joker.php   Download  
File: joker.php
Role: Application script
Content type: text/plain
Description: Joker initialization
Class: Joker the IRC bot
Base for building IRC bot
Author: By
Last change: Added seen plugin
Date: 13 years ago
Size: 1,600 bytes
 

Contents

Class file image Download
<?php

/**
 * @package Joker
 * @author Miami <miami@blackcrystal.net>
 * @version 1.1 on 26/05/2010
 * @license Released under the MIT License
 * @link www.blackcrystal.net
 *
 * Joker initialization
 *
 * What we have here:
 * - Initialize bot
 * - Change some parameters
 * - Activate required plugins
 * - Activate exsample plugins
 * - Start the bot
 */


// Initialize bot

include 'joker.class.php';

$joker = new Joker();

// Change some parameters

$joker->me = 'BC^joker';
$joker->altnicks = array( 'BC^j0k3r', 'BC^jo' ); // used by Startup plugin to set nick
$joker->autojoin = array( '#blackcrystal', '#kill.or.die' ); // used by Startup plugin to join channels
$joker->admins = array( 'BC^miami' ); // used by admin plugin
$joker->loglevel = true; // true level :D see all messages

// Activate required plugins

$joker->load('startup'); // Startup sequence
$joker->load('admin'); // Simple administration
$joker->load('seen');
// Activate exsample plugins

// $joker->load('HelloWorld'); // Hello world application
// $joker->load('PrivateTalk'); // Private talk
// $joker->load('TimerExample'); // Timer usage example
$joker->load('temp'); // Google weather
$joker->load('ql'); // QuakeLive
$joker->load('saywa'); // SayWa

// Start the bot

$joker->connect( 'irc.quakenet.org', 6667 );