PHP Classes
Icontem

File: bobot.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of JImmy Bo  >  Bobo PHP IRC Class  >  bobot.php  
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
 

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";




?> 

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products