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("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")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue