mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Magari così si possono mettere emoji nel /diario ?
This commit is contained in:
parent
46b1ba1511
commit
26886fd146
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -396,7 +396,7 @@ def diario():
|
|||
cmd = text.split(" ", 1)
|
||||
if len(cmd) > 1:
|
||||
if cmd[1].isprintable():
|
||||
cmd[1] = cmd[1].replace("\n", " ")
|
||||
cmd[1] = cmd[1].replace("\n", " ").encode("unicode_escape")
|
||||
fdiario = filemanager.readfile("diario.txt")
|
||||
fdiario += str(int(time.time())) + "|" + cmd[1] + "\n"
|
||||
filemanager.writefile("diario.txt", fdiario)
|
||||
|
|
Loading…
Reference in a new issue