killwithme commented on a Page, PHP IRC Bot v2  -  Apr 20, 2009

like this:

    //  split the message
    $word = explode(" ",$message);

    // the first word is the trigger, usually
    if($word[0] == "!trigger") {    
            send("PRIVMSG",$chan,"this is a test");
        }
    }

send($what,$to,$text) is to send usually PRIVMSGs, which are, in IRC Protocol the normal messages and formats it for IRC

sendsimple($what,$value) is to send messages like QUIT, where $value can be a quit message

alepatino  -  Feb 11, 2017

I love it thanks dude its my first php bot but how do i make him join a channel?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.