pressy4pie

Untitled

Aug 26th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. __module_name__ = "helloworld"
  2. __module_version__ = "1.0"
  3. __module_description__ = "Python module example"
  4.  
  5. import xchat
  6.  
  7. def give_pie(word, word_eol, userdata):
  8. # if find pressy, then display image of pie
  9. line = "".join(word[1:])
  10. if line.find(" y ") != -1:
  11. xchat.command("say pie_image.jpg")
  12.  
  13. #cnc = xchat.find_context(channel='#OUDhitsquad')
  14. #cnc.command('whois interloper')
  15.  
  16. xchat.hook_print("Channel Message", give_pie)
Advertisement
Add Comment
Please, Sign In to add comment