File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 23
23
#####################################
24
24
#
25
25
COMMAND_PREFIX = '!' #
26
- VERSION = "v0.2 -alpha" #
26
+ VERSION = "v0.3 -alpha" #
27
27
ACTIVITY = discord .Game ("!help" ) #
28
28
LOG_LEVEL = logging .INFO #
29
29
#
@@ -158,6 +158,19 @@ async def on_message(message):
158
158
for recipient in mentions :
159
159
await message .channel .send (f"Happy Birthday <@{ recipient .id } >! 🎈🎉🎂" )
160
160
161
+ elif 'er' in message .content .lower ():
162
+ """
163
+ Lets the bot tell the famous "x-er? I hardly know 'er!" joke
164
+ """
165
+
166
+ user_message = message .content .split ()
167
+
168
+ for i in range (len (user_message )):
169
+ if (user_message [i ][- 2 :] == "er" ):
170
+ response = user_message [i ][0 ].upper () + user_message [i ][1 :] + "? I hardly know her!"
171
+ await message .channel .send (response )
172
+ break
173
+
161
174
elif 'im' in message .content .lower () or 'i\' m' in message .content .lower () or 'i am' in message .content .lower ():
162
175
"""
163
176
Lets the bot tell the famous "Hi x! I'm dad!" joke
You can’t perform that action at this time.
0 commit comments