Advertisement
Xliff

I Stole Your Cool

Mar 24th, 2016
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.55 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use HexChat;
  4.  
  5. HexChat::register( "COOL", "0.1",
  6.    "Print a series of text emojis that make the user look cool!" );
  7. HexChat::hook_command( "COOL", \&display_cool );
  8.  
  9. sub display_cool {
  10.     HexChat::command "say (•_•)";
  11.  
  12.     HexChat::hook_timer(1000, sub {
  13.         HexChat::command "say ( •_•)>⌐■-■";
  14.         return HexChat::REMOVE;
  15.     });
  16.  
  17.     HexChat::hook_timer(2000, sub {
  18.         HexChat::command "say (⌐■_■)";
  19.         return HexChat::REMOVE;
  20.     });
  21.    
  22.     return HexChat::EAT_HEXCHAT;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement