Example Source Code To Make Your Own Web Server bot (PHP)
Nimbuzzmasters forum
nwlve HI   GUEST nwlve
WELCOME TO NIMBUZZ MASTERS FORUM
PLEASE   REGISTER

TO
Dzs HAVE FULL ACCESS TO THE FORUM AND BE ABLE TO DOWNLOAD STUFF Dzs
Grp
STAY WITH US THANK YOU
Forum management ©️
Mzs
Nimbuzzmasters forum

The forum of the nimbuzz forums


You are not connected. Please login or register

 
 

Example Source Code To Make Your Own Web Server bot (PHP)

Message (Page 1 of 1)

avatar
 
Administrator
Administrator

Posted on Sat May 28, 2016 7:59 pm

 

*
POPULAR

Code:
<?php
include 'XMPPHP1/Log.php';
include 'XMPPHP1/XMPP.php';
include 'XMPPHP1/XMPP_lechu.php';
$pengguna = 'NIMBUZZ ID HERE';
$room= 'ROOM NAME HERE';
$room10="$room@conference.nimbuzz.com";

$conn = new XMPPHP_XMPP('o.nimbuzz.com', 5222, $pengguna, 'YOURPASSWORD HERE', 'RESOURCE HERE', 'nimbuzz.com', $printlog=false,$loglevel=XMPPHP_Log::LEVEL_INFO);
$conn->connect();

while(!$conn->isDisconnected()) {
    $payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));
    foreach($payloads as $event) {
        $pl = $event[1];
        switch($event[0]) {
            case 'message':


                
                /// ALL YOUR CODES RELATED TO MESSAGES IN ROOM GOES HERE... ex: Message Filter
                


 break;
            case 'presence':




// ALL YOUR CODES RELATED TO PRESENCE ex: Welcom MESSAGE, Username Filter Goes Here.........


 break;
            case 'session_start':
                $conn->presence($status="Lechu Web-BoT");
$conn->send("<presence to='$room@conference.nimbuzz.com/$pengguna'><x xmlns='http://jabber.org/protocol/muc'><password>pwd</password></x></presence>");
 break;
        }
    }
}
?>



View user profile


avatar
 
REVIEWERS
REVIEWERS

Posted on Wed Jun 01, 2016 10:07 pm

 
nice



View user profile


avatar
 
Member
Member

Posted on Sat Jul 02, 2016 7:02 pm

 



View user profile


avatar
 
Member
Member

Posted on Thu Jul 07, 2016 9:36 am

 



View user profile


avatar
 
Fояαм new user
Fояαм new user

Posted on Fri Jan 27, 2017 6:31 am

 
thnk you rascal



View user profile


avatar
 
Designer
Designer

Posted on Sun Jan 29, 2017 10:11 pm

 



View user profile


avatar
 
Member
Member

Posted on Tue Oct 23, 2018 7:21 pm

 
what is XMPP_lechu.php



View user profile



 
Member
Member

Posted on Thu Nov 08, 2018 4:01 pm

 
You



View user profile http://www.bdchatclub.forumotion.com/


#9

Sponsored content


 

Posted

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum


  • Total Posts:
  • Total Members:
  • Newest Member:
  • Most Online: Most users ever online was 540 on Tue Jan 19, 2016 9:39 pm

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests
Users browsing this forum: None