~ubuntu-branches/ubuntu/utopic/gozerbot/utopic

« back to all changes in this revision

Viewing changes to build/lib/gplugs/shakespear.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Malcolm
  • Date: 2012-04-03 21:58:28 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120403215828-6mik0tzug5na93la
Tags: 0.99.1-2
* Removes logfiles on purge (Closes: #668767)
* Reverted location of installed files back to /usr/lib/gozerbot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# plugs/shakespear.py
 
2
#
 
3
#
 
4
 
 
5
""" uses the random lib """
 
6
 
 
7
__copyright__ = 'this file is in the public domain'
 
8
__revision__ = '$Id: shakespeare.py 517 2006-12-21 05:00:00Z deck $'
 
9
 
 
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
 
15
 
 
16
import re, random
 
17
 
 
18
plughelp.add('shakespear', 'display a shakespearean insult')
 
19
 
 
20
set_a=["Away I say",
 
21
       "Bathe thyself",
 
22
       "Be not deaf",
 
23
       "Behold thy mirror",
 
24
       "Beware my sting",
 
25
       "Clean thine ears",
 
26
       "Drink up eisel",
 
27
       "Eat a crododile",
 
28
       "Eat my knickers",
 
29
       "Fie upon thee",
 
30
       "Forsooth say I",
 
31
       "Get thee gone",
 
32
       "Get thee hence",
 
33
       "Grow unsightly warts",
 
34
       "Hear me now",
 
35
       "Hear this pox alert",
 
36
       "I'll see thee hang'd",
 
37
       "Kiss my codpiece",
 
38
       "Lead apes in hell",
 
39
       "Methinks you stinks",
 
40
       "My finger in thine eye",
 
41
       ">>Phui<< I say",
 
42
       "Remove thine ass hence",
 
43
       "Resign not thy day gig",
 
44
       "Sit thee on a spit",
 
45
       "Sorrow on thee",
 
46
       "Swim with leeches",
 
47
       "Thou dost intrude",
 
48
       "Thy mother wears armor",
 
49
       "Trip on thy sword",
 
50
       "Tune thy lute",
 
51
       "Why, how now putz",
 
52
       "Wipe thy ugly face"]
 
53
set_b=["artless",
 
54
       "bawdy",
 
55
       "beslubbering",
 
56
       "bootless",
 
57
       "cankerous",
 
58
       "churlish",
 
59
       "cockered",
 
60
       "clouted",
 
61
       "craven",
 
62
       "currish",
 
63
       "dankish",
 
64
       "dissembling",
 
65
       "droning",
 
66
       "errant",
 
67
       "fawning",
 
68
       "fobbing",
 
69
       "fool-born",
 
70
       "froward",
 
71
       "frothy",
 
72
       "gleeking",
 
73
       "goatish",
 
74
       "gorbellied",
 
75
       "ill-nurtured",
 
76
       "impertinent",
 
77
       "incestuous",
 
78
       "incurable",
 
79
       "infectious",
 
80
       "jarring",
 
81
       "loggerheaded",
 
82
       "lumpish",
 
83
       "loutish",
 
84
       "mammering",
 
85
       "mangled",
 
86
       "mewling",
 
87
       "paunchy",
 
88
       "pribbling",
 
89
       "puking",
 
90
       "puny",
 
91
       "qualling",
 
92
       "rank",
 
93
       "reeky",
 
94
       "roguish",
 
95
       "rump-fed",
 
96
       "ruttish",
 
97
       "saucy",
 
98
       "spleeny",
 
99
       "spongy",
 
100
       "surly",
 
101
       "tardy-gaited",
 
102
       "tottering",
 
103
       "unmuzzled",
 
104
       "vain",
 
105
       "venomed",
 
106
       "warped",
 
107
       "wayward",
 
108
       "weedy",
 
109
       "whoreson",
 
110
       "wretched",
 
111
       "yeasty"]
 
112
set_c=["addlepated",
 
113
       "base-court",
 
114
       "bat-fowling",
 
115
       "beef-witted",
 
116
       "beetle-headed",
 
117
       "boil-brained",
 
118
       "clapper-clawed",
 
119
       "clay-brained",
 
120
       "codpiece-sniffing",
 
121
       "common-kissing",
 
122
       "crook-pated",
 
123
       "dismal-dreaming",
 
124
       "dizzy-eyed",
 
125
       "doghearted",
 
126
       "dread-bolted",
 
127
       "earth-vexing",
 
128
       "elf-skinned",
 
129
       "fat-kidneyed",
 
130
       "fen-sucked",
 
131
       "flap-mouthed",
 
132
       "fly-bitten",
 
133
       "folly-fallen",
 
134
       "fool-born",
 
135
       "foul-practicing",
 
136
       "full-gorged",
 
137
       "guts-griping",
 
138
       "half-faced",
 
139
       "hasty-witted",
 
140
       "hedge-born",
 
141
       "hell-hated",
 
142
       "idle-headed",
 
143
       "ill-breeding",
 
144
       "ill-nurtured",
 
145
       "knotty-pated",
 
146
       "mad-brained",
 
147
       "milk-livered",
 
148
       "motley-minded",
 
149
       "onion-eyed",
 
150
       "plume-plucked",
 
151
       "pottle-deep",
 
152
       "pox-marked",
 
153
       "reeling-ripe",
 
154
       "rough-hewn",
 
155
       "rude-growing",
 
156
       "rump-fed",
 
157
       "shard-borne",
 
158
       "sheep-biting",
 
159
       "spur-galled",
 
160
       "swag-bellied",
 
161
       "tardy-gaited",
 
162
       "tickle-brained",
 
163
       "toad-spotted",
 
164
       "unchin-snouted",
 
165
       "weather-bitten"]
 
166
set_d=["apple-john",
 
167
       "baggage",
 
168
       "barnacle",
 
169
       "bladder",
 
170
       "boar-pig",
 
171
       "bugbear",
 
172
       "bum-bailey",
 
173
       "canker-blossom",
 
174
       "clack-dish",
 
175
       "clotpole",
 
176
       "coxcomb",
 
177
       "codpiece",
 
178
       "death-token",
 
179
       "dewberry",
 
180
       "dotard",
 
181
       "flap-dragon",
 
182
       "flax-wench",
 
183
       "flea",
 
184
       "flirt-gill",
 
185
       "foot-licker",
 
186
       "fustilarian",
 
187
       "giglet",
 
188
       "gudgeon",
 
189
       "haggard",
 
190
       "harpy",
 
191
       "hedge-pig",
 
192
       "horn-beast",
 
193
       "hugger-mugger",
 
194
       "jolthead",
 
195
       "knave",
 
196
       "lewdster",
 
197
       "lout",
 
198
       "maggot-pie",
 
199
       "malt-worm",
 
200
       "mammet",
 
201
       "measle",
 
202
       "minnow",
 
203
       "miscreant",
 
204
       "moldwarp",
 
205
       "mumble-news",
 
206
       "nit",
 
207
       "nut-hook",
 
208
       "pigeon-egg",
 
209
       "pignut",
 
210
       "pumpion",
 
211
       "puttock",
 
212
       "ratsbane",
 
213
       "rudesby",
 
214
       "scut",
 
215
       "skainsmate",
 
216
       "strumpet",
 
217
       "varlot",
 
218
       "vassal",
 
219
       "wagtail",
 
220
       "water-fly",
 
221
       "whey-face",
 
222
       "winter-cricket"]
 
223
 
 
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))
 
226
    
 
227
cmnds.add('insult', handle_insult, 'USER')
 
228
examples.add('insult', 'show a shakespearean insult', 'insult')
 
229
tests.add('insult')