Share Pastebin
Guest
Public paste!

Untitled

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