mirror of
https://github.com/supleed2/gondilinabot-python.git
synced 2024-12-22 21:45:48 +00:00
Temp Patch
No idea why split seems to work differently now, but this should be fine
This commit is contained in:
parent
bfe75cb851
commit
7e7a30e1d6
10
app.py
10
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")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue