'example.com', 'username'=>'exampleuser', 'password'=>'1ExamplePasswordXorz!', 'debug'=>TRUE, // Turn on debugging ); parent::__construct($params); } /** * Handle the Jabber message_chat event * * */ public function handle_message_chat($from, $to, $body, $subject, $thread, $id, $extended){ # Do stuff to handle the message_chat event } /** * Do some stuff during the Jabber heartbeat event * * */ public function handle_heartbeat(){ # Do stuff to handle the heartbeat event } } $NewJabberBot = new NewJabberBot(); ?>