mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Non bloccarmi il diario se c'è un \n nella risposta.
This commit is contained in:
parent
1c9ec0b3bc
commit
f825dff121
1 changed files with 1 additions and 0 deletions
1
bot.py
1
bot.py
|
@ -562,6 +562,7 @@ while True:
|
|||
elif text.startswith('/diario'):
|
||||
print("@" + username + ": /diario ")
|
||||
cmd = text.split(" ", 1)
|
||||
cmd[1] = cmd[1].replace("\n", " ")
|
||||
d = filemanager.readfile("diario.txt")
|
||||
d += str(int(time.time())) + "|" + cmd[1] + "\n"
|
||||
filemanager.writefile("diario.txt", d)
|
||||
|
|
Loading…
Reference in a new issue