Login   Register  
PHP Classes
elePHPant
Icontem

File: bobot.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of JImmy Bo  >  Bobo PHP IRC Class  >  bobot.php  >  Download  
File: bobot.php
Role: Example script
Content type: text/plain
Description: An example use of Bobo's IRC Class
Class: Bobo PHP IRC Class
Client to access IRC servers
Author: By
Last change:
Date: 5 years ago
Size: 652 bytes
 

Contents

Class file image Download
<?PHP
set_time_limit
(0);
error_reporting(E_ALL);

// example use of the boboirc class 

// define your variables
$host "dissonance.nl.eu.synirc.net";
$port=6667;
$nick="bobot"// change to something unique. this aint gonna try twice.
$ident="mybot";
$chan="#bobot";
$realname "ima bobot";


echo 
"including irc class...\r\n";
include_once(
'class.boboirc.php');

echo 
"initiating irc class and connecting...\r\n";
$ircbot = new boboirc($nick$ident$realname$host$port);

echo 
"joining channel..\r\n";
$ircbot->joinChan($chan); 

echo 
"entering loop..\r\n";
$ircbot->loop();

echo 
"disconnected. \r\n";




?>