News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
Creating a chat bot with PHP and Dbus
January 09, 2012 @ 11:10:52

Robert Basic has continued his series looking at using Dbus in PHP with this latest post to his blog - using the foundation he's created before to make a chat bot that will listen and respond to commands on a Jabber network.

Now that we know how to use DBus to communicate with Pidgin from PHP and how to listen to DBus signals, it's time to put it all together by creating a simple chat bot! Nothing fancy, just a simple script that runs somewhere on some server and, by using a Pidgin account, can respond to some basic queries we send it.

His new code listens for an incoming message on the "PurpleInterface", grabs the name of the sender and calls a "PurpleConvImSend" method with the conversation object and the message to send. You can find the complete source for the project on his github account.

0 comments voice your opinion now!
dbus tutorial pigdin extension pecl chat bot jabber


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Combining Zend Framework2 and Symfony2 components with Composer to build PHP projects

TheTechLabs.com: Integrate Flex Builder 3.0 & Php easily with the fresh ZendAMF

Greg Beaver's Blog: phar gets a major speed boost with version 1.2.1

Zend Framework By Examples: Handling dates and times (Zend_Date)

Allan MacGregor: Magento and HHVM


Community Events





Don't see your event here?
Let us know!


composer symfony list interview introduction framework series threedevsandamaybe podcast laravel language unittest version configure conference voicesoftheelephpant opinion community release api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework