1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

Modifica al formato.

This commit is contained in:
Steffo 2016-02-02 19:24:19 +01:00
parent 32f68ffdb6
commit 0e6faf7adb

2
bot.py
View file

@ -677,7 +677,7 @@ while True:
print("@" + username + ": /diario ")
cmd = text.split(" ", 1)
d = filemanager.readfile("diario.txt")
d += str(time.time()) + " | " + cmd[1] + "\n"
d += "`" + str(int(time.time())) + "` | " + cmd[1] + "\n"
filemanager.writefile("diario.txt", d)
telegram.sendmessage("Aggiunto al diario RYG.", sentin, source)
elif text.startswith('/leggi'):