PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nick Daniels   PHP IRC Bot   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: FusionBot IRC Skeleton Example
Class: PHP IRC Bot
IRC bot that responds to private messages
Author: By
Last change: View little changes to variable values
Date: 8 years ago
Size: 238 bytes
 

Contents

Class file image Download
<?php

define
('ROOT_DIR', __DIR__);

require
'FusionBot.class.php';
$bot = new FusionBot;
$bot->server = 'localhost';
$bot->port = 6667;
$bot->nick = 'BotNick';
$bot->name = 'BotName';
$bot->channel= '#botchan';
$bot->run();