Skip to content

Commit 733d272

Browse files
committed
Update protobot.py
1 parent ed7f58d commit 733d272

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

protobot.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ async def on_message(message):
115115
print(response)
116116
await message.channel.send(response)
117117
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
118139

119140

120141
@bot.command(name = '99', help = 'Responds with a random Brooklyn 99 quote.')

0 commit comments

Comments
 (0)