1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

Annullata una modifica che bloccava il diario.

This commit is contained in:
Steffo 2016-09-22 23:01:36 +02:00
parent 925828dfb1
commit 1ae5a2d774

2
bot.py
View file

@ -399,7 +399,7 @@ def diario():
cmd = text.split(" ", 1) cmd = text.split(" ", 1)
if len(cmd) > 1: if len(cmd) > 1:
if cmd[1].isprintable(): if cmd[1].isprintable():
cmd[1] = cmd[1].replace("\n", " ").encode("unicode_escape") cmd[1] = cmd[1].replace("\n", " ")
fdiario = filemanager.readfile("diario.txt") fdiario = filemanager.readfile("diario.txt")
fdiario += str(int(time.time())) + "|" + cmd[1] + "\n" fdiario += str(int(time.time())) + "|" + cmd[1] + "\n"
filemanager.writefile("diario.txt", fdiario) filemanager.writefile("diario.txt", fdiario)