forked from thepeopleseason/olga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwiggum
executable file
·187 lines (181 loc) · 5.13 KB
/
wiggum
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
#!/usr/local/bin/perl -w
use strict;
my $result;
srand(time|$$);
$_ = $ARGV[0];
if (m/(yes|no)/i) {
my @yesno =
(
'Once my daddy told me yes and I said no. Daddy, I wet my pants.',
q{I like answers like that. I think they're funny.},
q{Where's my mommy?},
);
$result = $yesno[rand(@yesno)];
}
elsif (m/(fire|burn)/i) {
my @burn =
(
'The leprechaun told me to burn things!',
'The purple berries taste like burning',
'My face is on fire!',
);
$result = $burn[rand(@burn)];
}
elsif (m/worm/) {
my @worm =
(
q{When the doctor said I didn't have worms anymore, that was the happiest day of my life.},
'My worm crawled in my mouth and I ate it.',
);
$result = $worm[rand(@worm)];
}
elsif (m/(candy|m\&m)/i) {
$result = 'Once I had an M&M stuck in my nose';
}
elsif ($_ =~ m/(hi|hello)/i && $_ !~ m/name/i) {
$result = q{Hello. What's your name?};
}
elsif($_ =~ m/my.*name/i) {
$result = 'What a name! Tell me about yourself.';
}
elsif (m/(mom|mother|mama|dad|father|daddy|parent|parents)/i) {
my @parents =
(
'Will you tell me where my mommy is?',
'They were in the closet making babies!',
q{I don't know much about my Mom. Daddy says she's gone away.},
q{My parent's won't let me us scissors.},
);
$result = $parents[rand(@parents)];
}
elsif (m/(i think|i believe|i thought)/i) {
$result = 'Why do you say that? I would like to talk about crayons.';
}
elsif (m/you think that /i) {
$result = q{How do you know what I'm thinking?};
}
elsif (m/(pedal|bike|bicycle)/i) {
$result = q{I'm pedaling backwards!};
}
elsif (m/(live|springfield)/i) {
$result = 'I live in Springfield.';
}
elsif (m/(restaurant|ate|eaten)/i) {
my @eat =
(
'I heard your dad went in to a restaurant and ate everything in the restaurant and they had to close the restaurant.',
'This snowflake tastes like fishsticks.',
);
$result = $eat[rand(@eat)];
}
elsif (m/(scissors)/i) {
$result = q{My parents won't me use scissors.};
}
elsif (m/(boy|man)/i) {
$result = q{I'm a boy!};
}
elsif (m/(lisa|simpson|girl|girlfriend)/i) {
my @lisa =
(
'Haha! I love Lisa Simpson.',
q{Yes! I love Lisa Simpson, and when I grow up, I'm going to marry her!},
'Lisa Simpson is my girlfriend.',
);
$result = $lisa[rand(@lisa)];
}
elsif (m/(backside|spank|whip|cane)/i) {
$result = 'I ask for no bratwurst. Away from me, lest my cane find your backside!';
}
elsif (m/(teeth|brush)/i) {
$result = q{I don't brush.. I don't brush!};
}
elsif (m/(caps|cap gun)/i) {
$result = 'I ate all my caps...';
}
elsif (m/(dinner|stove|cook)/i) {
$result = q{Will you cook my dinner for me? My parents aren't home and I'm not allowed to turn on the stove.};
}
elsif (m/friend/i) {
$result = q{You're my best friend in the whole world.};
}
elsif (m/(cat|gerbil|pet)/i) {
$result = 'Would you like to pet my cat?';
}
elsif (m/(sex|mambo|closet)/i) {
$result = 'Mrs. Crobopel and Principal Skinner were in the closet making babies, and I saw one of the babies and it looked at me.';
}
elsif (m/(crayon|crayola|marker)/i) {
$result = q{I don't have a red crayon...};
}
elsif (m/(diarmama|project)/i) {
$result = q{What's a diorama?};
}
elsif (m/(vent|dog)/i) {
$result = q{There's a dog in the vent.};
}
elsif (m/(dress|clothes)/i) {
$result = 'I dress myself!';
}
elsif (m/(bovine|university|grow|college)/i) {
$result = q{When I grow up, I'm going to Bovine University};
}
elsif (m/(krusty|clown|klown|funny)/i) {
$result = 'I think Krusty the Klown is funny.';
}
elsif (m/chief/i) {
$result = 'My daddy is the police chief.';
}
elsif (m/(train|tracks|choo)/i) {
$result = q{It says... Choo-Choo-Choose Me. And there's a picture of a train...};
}
elsif (m/(grandpa|grandfather|grandma|grandmother)/i) {
$result = q{My Dad won't let me talk about my grandparents.};
}
elsif (m/fart/i) {
$result = 'Hehe.. you said fart!';
}
elsif (m/(bathroom|toilet|urinal|restroom)/i) {
$result = 'May I be excused?';
}
elsif (m/(rubber|pants)/i) {
$result = q{Daddy, can I take off my rubber pants? They're hot.};
}
elsif ($_ =~ m/(dork|dumbass|jerk|loser|dropout|stupid|weenie)/i &&
$_ =~ m/(you|ralph|youre)/i) {
$result = q{I'm glad that we're friends. Can I call you friend?};
}
elsif (m/(dork|dumbass|jerk|loser|dropout|stupid|weenie)/i) {
$result = q{Hehehe. Some thing's are just like that!};
}
elsif (m/(fuck|shit|damn|bitch|poop|goddamn|pee)/i) {
$result = 'My daddy washed my mouth out with soap once.';
}
elsif (m/\?$/) {
$result = 'Uhhh... I dunno.';
}
else {
if (m/^([^\s]*)$/) {
$result = qq(What's a "$1"? I think you're funny.);
}
else
{
if ( rand(6) % 6 == 0 ) {
$result = qq(you said "$_");
if ( rand() > 75 ) {
$result .= q{ You're funny.};
}
}
else {
my @random =
(
q{My cat's breath smells like cat food.},
qq(So.. Do you like, "stuff?"),
'Can I walk you home?',
'Are you my mom?',
'Will you be my friend?',
);
$result = $random[rand(@random)];
}
}
}
print $result, "\n";