gehoorbeschermers

PHP IRC bot

Been bored lately, so I'd thought I'd make an IRC bot in PHP. I wasn't sure how they worked, so I found this to be great: http://www.hawkee.com/snippet/5330/

I added a little more to it, using switch() instead of an if statement. So, instead of:


if ($rawcmd[1] == "!sayit") {

I changed it to

 

 switch(rtrim($rawcmd[1])) {

 

Gehoorbeschermers!

EDIT: Read bottom
Back home now, loving the G15. For once, I think I'm actually going to work on something, but lately I felt like making either, a)CMS/social networking/forum or b)a theme for Drupal. In the end, I'll probably end up making a CMS and a theme for Drupal in GIMP.

On that note about the CMS; I already have a login/register forum, I also have JAB (blogging script, which I am in the process of re-writing) and numerous other scripts I could add to make one flexible, simple, easy CMS.

Comments are appreciated.

Subscribe to RSS - gehoorbeschermers