Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: Python | Size: 0.53 KB | Hits: 17 | Expires: Never
Copy text to clipboard
  1. #!/usr/bin/env python
  2. """
  3. fap module by Andi Miller, designed to be the alter ego of ZesDa from #42 on AFNet
  4. """
  5. import random
  6.  
  7. def interjection(phenny, input):
  8.    phenny.say(input.nick + '!')
  9. interjection.rule = r'$nickname!'
  10. interjection.priority = 'high'
  11. interjection.thread = False
  12.  
  13. def fap(phenny, input):
  14.    choice=random.choice(range(0,5))
  15.    if choice==1:
  16.       phenny.say("FAP")
  17.    if choice==2:
  18.       list=input.split(" ")
  19.       word=random.choice(list)
  20.       phenny.say("s/"+word+"/fap/")
  21.  
  22. fap.rule = r'(.*)'