mirror of
https://github.com/supleed2/gondilinabot-python.git
synced 2024-12-22 21:45:48 +00:00
Add full caps variant to regex
This commit is contained in:
parent
b219f9b65c
commit
6ec9714e2b
4
app.py
4
app.py
|
@ -27,7 +27,7 @@ async def on_message(message):
|
||||||
if message.author == bot.user:
|
if message.author == bot.user:
|
||||||
return
|
return
|
||||||
elif message.author.id == 581890740360052764:
|
elif message.author.id == 581890740360052764:
|
||||||
reply = re.split("(^| )(I'm|Im|i'm|im|I am|i am)( )", message.content, 1)
|
reply = re.split("(^| )(I'M|IM|I AM|I'm|Im|I am|i'm|im|i am)( )", message.content, 1)
|
||||||
if len(reply) > 1:
|
if len(reply) > 1:
|
||||||
print("Message from " + message.author.name + ": " + message.content)
|
print("Message from " + message.author.name + ": " + message.content)
|
||||||
print(
|
print(
|
||||||
|
@ -44,7 +44,7 @@ async def on_message(message):
|
||||||
else:
|
else:
|
||||||
global counter
|
global counter
|
||||||
# TODO: Add detection for "genshin" and replace with "g*nshin"
|
# TODO: Add detection for "genshin" and replace with "g*nshin"
|
||||||
reply = re.split("(^| )(I'm|Im|i'm|im|I am|i am)( )", message.content, 1)
|
reply = re.split("(^| )(I'M|IM|I AM|I'm|Im|I am|i'm|im|i am)( )", message.content, 1)
|
||||||
if len(reply) > 1:
|
if len(reply) > 1:
|
||||||
print("Message from " + message.author.name + ": " + message.content)
|
print("Message from " + message.author.name + ": " + message.content)
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in a new issue