Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use HexChat qw(:all);
  4. register('Spank-o-matic','0.2a','wildKat\'s Bot [CLS]', sub { command('echo Spank Thing Off')});
  5. command('echo Spank Thing On');
  6. hook_print('Channel Message', \&spankGo);
  7. hook_print('Your Message', \&spankGo);
  8. hook_print('Channel Message Hilight', \&spankGo);
  9. my $ch = "#houseofpain"; # CHANGE THIS TO YOUR CHANNEL NAME IN LOWER CASE
  10. sub spankGo {
  11. my $nick = $_[0][0];
  12. my $mesg = $_[0][1];
  13. my $chan = get_info('channel');
  14. my $netw = get_info('network');
  15. if(lc($mesg) =~ /^\!spank/ && lc($chan) eq lc($ch)){
  16. my @trig = split(/ /, $mesg);
  17. set_context( $ch, undef);
  18.  
  19. my @responses = (" with something hard and sandpapery!",
  20. " with a rubber chicken!",
  21. " with a boat oar!"
  22. );
  23. my $item = $responses[ rand @responses ];
  24.  
  25. command("me spanks " . $trig[1] . $item);
  26. }
  27. return EAT_NONE;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement