mirror of
https://github.com/supleed2/gondilinabot-python.git
synced 2024-12-22 13:35:48 +00:00
Add more detailed logging of split function
This commit is contained in:
parent
34ce7b1716
commit
bfe75cb851
9
app.py
9
app.py
|
@ -31,6 +31,15 @@ async def on_message(message):
|
|||
reply = re.split("(^| )(I'm|Im|i'm|im|I am|i am)( )", message.content, 1)
|
||||
if len(reply) > 1:
|
||||
print("Message from " + message.author.name + ": " + message.content)
|
||||
print(
|
||||
"Reply: Length:"
|
||||
+ len(reply)
|
||||
+ ", Contents: {"
|
||||
+ reply[0]
|
||||
+ "}, {"
|
||||
+ reply[1]
|
||||
+ "}"
|
||||
)
|
||||
if counter > 0:
|
||||
counter -= 1
|
||||
print("Cooldown: " + str(counter) + " messages")
|
||||
|
|
Loading…
Reference in a new issue