All pastes #511439 Raw Edit

Stuff

public text v1 · immutable
#511439 ·published 2007-05-26 13:05 UTC
rendered paste body
#!/usr/bin/env python
"""
monty.py - Converse with Monty
Author: Sean B. Palmer, inamidst.com
Edited for use on irc.borknet.org by mumbles 
About: http://inamidst.com/phenny/
"""

def f_tauntmonty(self, origin, match, args): 
   text = args[0]
   if (origin.nick == 'mumbles') and (origin.sender == '#alt-f4'):
      reply = None
      if text.startswith('Thank goodness'): 
         reply = "Be quiet, Monty."
      elif text.endswith('price of fish?'): 
         reply = "Hush there, Monty."
      elif text.endswith('how ya doing?'): 
         reply = "Monty: shh, don't let anyone know you're around!"
      if reply: self.msg(origin.sender, reply)
f_tauntmonty.rule = r'.*(?:Thank goodness|price of fish|how ya doing).*'

def f_tauntmonty(self, origin, match, args): 
   text = args[0]
   if (origin.nick == 'bob') and (origin.sender == '#borknet'): 
      reply = None
      if text.startswith('Thank goodness'): 
         reply = "Be quiet, bob."
      elif text.endswith('Chuck Norris'): 
         reply = "Mr T is cooler."
      elif text.endswith('how ya doing?'): 
         reply = "bob: shh, don't let anyone know you're around!"
      if reply: self.msg(origin.sender, reply)
f_tauntmonty.rule = r'.*(?:Thank goodness|Chuck Norris|how ya doing).*'