!join #channel – Joins the specified IRC channel
!part #channel – Leaves the specified IRC channel
!say #channel Message – Says message in the specified IRC channel
!restart – Quits and restarts the script. (Helpful while testing the script)
!shutdown – Quits and stops the script.
Usage and output:
<random-user> !say #trojan-bot hello there
<trojan-bot> hello there
Code Lines of Note
Lines 24 – 48: This is where you set your connection data
Line 101: Prints all the output you see on the screen
Line 115-140: Contains all commands
Line 180: Starts the bot
Help/Support
If you are having any problems with the PHP bot, need help extending it, or just have an idea, feel free to make a post on our forum.