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

C7Y:
Reflections on Designing an IRC Bot in PHP, Part 1
Apr 08, 2008 @ 20:25:01

Matthew Turland set out a while back to develop a bot in PHP. The result of it is Phergie an "an IRC bot written in PHP 5 with an OO API" that can be extended with components for a wide variety of features. Another pleasant offshoot from his project is this first part of two articles on the C7Y community site detailing its creation.

The PHP Community channel on the Freenode IRC network, #phpc, had a longstanding bot called "Ai". Like many bots at the time of her creation, she was based on PHP 4. [...] With the coming end-of-life of PHP 4 and at the encouragement of channel users, I decided to start a project to develop a new bot based on PHP 5 that would fully utilize its new object model and offer users a chance to contribute to the bot they used in their channel.

Matthew talks about the initial stages of development (planning, research) and some of the development process of the bootstrap file, configuration file, and driver as well as the event handling.

tagged: design irc bot tutorial c7y pecl extension libircclient

Link:

Matthew Turland's Blog:
Meet Phergie
Feb 25, 2008 @ 16:13:00

Matthew Turland has been working on a project based on an idea he and Ben Ramsey thought up - a wrapper around the libircclient libraries to make IRC interface simple. As a result, Matthew turned it into a more practical application - you can call her Phergie.

I had toyed with some previous iterations of Phergie, some Python-based and later some PHP-based, before I finally got an API design I was happy with.

The source for the bot can be downloaded from its subversion repository and you can find out more about it on its Trac site. Also, if you feel like chatting about it, you can head over to the #phergie channel on the Freenode IRC network.

tagged: phergie irc bot pecl libircclient library project plugin

Link:


Trending Topics: