Temp Patch

No idea why split seems to work differently now, but this should be fine
This commit is contained in:
Aadi Desai 2021-11-19 12:51:59 +00:00
parent bfe75cb851
commit 7e7a30e1d6
No known key found for this signature in database
GPG key ID: CFFFE425830EF4D9

10
app.py
View file

@ -33,11 +33,9 @@ async def on_message(message):
print("Message from " + message.author.name + ": " + message.content) print("Message from " + message.author.name + ": " + message.content)
print( print(
"Reply: Length:" "Reply: Length:"
+ len(reply) + str(len(reply))
+ ", Contents: {" + ", Final Contents: {"
+ reply[0] + reply[-1]
+ "}, {"
+ reply[1]
+ "}" + "}"
) )
if counter > 0: if counter > 0:
@ -45,7 +43,7 @@ async def on_message(message):
print("Cooldown: " + str(counter) + " messages") print("Cooldown: " + str(counter) + " messages")
else: else:
counter = random.randrange(mincooldown, maxcooldown) 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") print("Replied to " + message.author.name + " with Dad Joke")