5
""" uses the random lib """
7
__copyright__ = 'this file is in the public domain'
8
__revision__ = '$Id: shakespeare.py 517 2006-12-21 05:00:00Z deck $'
10
from gozerbot.generic import handle_exception
11
from gozerbot.commands import cmnds
12
from gozerbot.examples import examples
13
from gozerbot.plughelp import plughelp
14
from gozerbot.tests import tests
18
plughelp.add('shakespear', 'display a shakespearean insult')
33
"Grow unsightly warts",
35
"Hear this pox alert",
36
"I'll see thee hang'd",
39
"Methinks you stinks",
40
"My finger in thine eye",
42
"Remove thine ass hence",
43
"Resign not thy day gig",
48
"Thy mother wears armor",
224
def handle_insult(bot, ievent):
225
ievent.reply(random.choice(set_a)+" "+random.choice(set_b)+" "+random.choice(set_c)+" "+random.choice(set_d))
227
cmnds.add('insult', handle_insult, 'USER')
228
examples.add('insult', 'show a shakespearean insult', 'insult')