Created
October 3, 2011 17:26
-
-
Save aaronpk/1259668 to your computer and use it in GitHub Desktop.
Example IRC action for Loqi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| echo 'These are the variables defined by the environment'."\n"; | |
| echo '$action = '.$action."\n"; | |
| echo '$message = '.$message."\n"; | |
| echo '$nick = '.$nick."\n"; | |
| echo '$username = '.$username."\n"; | |
| echo '$channel = '.$channel."\n"; | |
| echo '$command_target = '.$command_target."\n"; | |
| echo '$params = '.$params."\n"; | |
| */ | |
| $msg=array( | |
| 'no', | |
| 'no.', | |
| 'nope', | |
| 'sorry.', | |
| 'no.', | |
| 'no' | |
| ); | |
| echo $msg[array_rand($msg)]; | |
| # echo $message; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment