message=='\version') {$this->say($message->user,'0.2a');} else { if($message->message=='\ping') {$this->say($message->user,'POOOOONNNNNNGGGGGGGGGGGG!!!!!!!!!!!');} else { if($message->message=='\6') {$this->say($message->user,'6 was afraid of 7 recently because 7 8 9');} } } } } $bot=new bot644( 'irc.freenode.net', //host 6667, //port 'bot644', //ident 'botman', //connection pass 'runemaste644s irc bot', //the long name 'Bot644', //nick 'botman' //ns pass if any ); $bot->connect(); var_dump($bot); $bot->join('#botpark'); var_dump($bot); $bot->loop(); var_dump($bot); ?>