From 7e7a30e1d66b20204883f98ecace9c632595a662 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Fri, 19 Nov 2021 12:51:59 +0000 Subject: [PATCH] Temp Patch No idea why split seems to work differently now, but this should be fine --- app.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index d821896..261993b 100644 --- a/app.py +++ b/app.py @@ -33,11 +33,9 @@ async def on_message(message): print("Message from " + message.author.name + ": " + message.content) print( "Reply: Length:" - + len(reply) - + ", Contents: {" - + reply[0] - + "}, {" - + reply[1] + + str(len(reply)) + + ", Final Contents: {" + + reply[-1] + "}" ) if counter > 0: @@ -45,7 +43,7 @@ async def on_message(message): print("Cooldown: " + str(counter) + " messages") else: counter = random.randrange(mincooldown, maxcooldown) - await message.reply("Hi " + reply[1] + ", I'm Dad") + await message.reply("Hi " + reply[-1] + ", I'm Dad") print("Replied to " + message.author.name + " with Dad Joke")