I am messing around with the PHP-IRC bot and I need some help coding in PHP a topic script. I want it to have 3 parts that I can set individually, "!topic" for the main Topic. "!status" for the status of the person like "Craighton is <status>" and finally a Static Text. Any help would be great!
Depends on how the bot works. Typically, read the buffer, split the lines from it, loop the lines individually, check the type of command, use substr() if it's a PRIVMSG to match sections of the string.
It would be pretty simple to make something like this.
All you would really need to do is listen for stuff like !status and then set (for example) $status to that and then /topic channel $prepend: $topic $divider $owner $status $divider $static.
If you post the original code to your bot I would be happy to take a look.
I am also coding an IRC bot with some code started off for me from Hawkee.com. I am attempting to write something like you are trying to into my bot now. I will post my results here when I get it done.