Advertisement
cooprocks123e

moo.py

Aug 25th, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import hexchat
  2.  
  3. __module_name__ = "moo"
  4. __module_version__ = "1.1"
  5. __module_description__ = "It moos"
  6.  
  7. def cb(word, word_eol, userdata):
  8. if(word[1]=="!moo"):
  9. channel = hexchat.get_info("channel")
  10. hexchat.command("MSG %s %s" %(channel, "moooo."))
  11. return hexchat.EAT_NONE
  12.  
  13. hexchat.hook_print("Channel Message", cb)
  14. hexchat.hook_print("Your Message", cb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement