File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,27 @@ async def on_message(message):
115
115
print (response )
116
116
await message .channel .send (response )
117
117
break
118
+
119
+ if 'hard' in message .content .lower () or 'long' in message .content .lower () or 'wet' in message .content .lower () or 'suck' in message .content .lower ():
120
+ """
121
+ Lets the bot tell the famous "That's what she said" joke
122
+ """
123
+
124
+ user_message = message .content .split ()
125
+
126
+ dirty_words = [' hard' , ' long' , ' wet' , ' suck' ]
127
+
128
+ for i in range (len (user_message )):
129
+ word = user_message [i ].lower ().strip ("?" ).strip ('"' ).strip ("'" )
130
+
131
+ if (' ' + word in dirty_words ):
132
+
133
+ print ("That's what she said incoming!" )
134
+
135
+ response = "That's what she said!"
136
+ print (response )
137
+ await message .channel .send (response )
138
+ break
118
139
119
140
120
141
@bot .command (name = '99' , help = 'Responds with a random Brooklyn 99 quote.' )
You can’t perform that action at this time.
0 commit comments