RSS DAILY NEWS TICKER EXAMPLE


home > overview

C7Y: Reflections on Designing an IRC Bot in PHP, Part 1




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.




click here to see original article or to find similar articles

 RSS DAILY HEADLINES

HEADLINES

McCain takes 5-point lead over Obama

Aug. 20: As the Republican and Democratic conventions approach, speculation increases the candidates’ picks for running mates. NBC’s Andrea Mitchell reports.  (Today Show)In a sharp turnaround, the Republican candidates has opened a 5-point lead on his Democratic rival and is seen as a stronger manager of the economy, according to a Reuters/Zogby poll.


Mexico outraged over corrupt police, kidnappings (AP) AP - After kidnappers in police uniforms set up a fake checkpoint to snatch 14-year-old Fernando Marti off a Mexico City street, his businessman father paid hundreds of thousands of dollars in ransom, and waited for his son's safe return.

Georgian separatists line up for Russian recognition (AFP)

Russian troops drive near their base in Teklati in western Georgia. Georgia's South Ossetia and Abkhazia regions planned rallies Thursday to ask Russia for recognition as independent states, two weeks after Russian troops occupied both provinces.(AFP/Louisa Gouliamaki)AFP - Georgia's South Ossetia and Abkhazia regions planned rallies Thursday to ask Russia for recognition as independent states, two weeks after Russian troops occupied both provinces.



Find this article in Google