Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created October 3, 2011 17:26
Show Gist options
  • Select an option

  • Save aaronpk/1259668 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpk/1259668 to your computer and use it in GitHub Desktop.
Example IRC action for Loqi
<?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