PHP IRC bot
Submitted by Easton on Fri, 05/07/2010 - 04:31
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])) {