mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Sistemata la verifica del diario ryg
This commit is contained in:
parent
a74ac32894
commit
6eab9eb0e0
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -556,7 +556,7 @@ while True:
|
||||||
print("@" + username + ": /diario ")
|
print("@" + username + ": /diario ")
|
||||||
cmd = text.split(" ", 1)
|
cmd = text.split(" ", 1)
|
||||||
if len(cmd) > 1:
|
if len(cmd) > 1:
|
||||||
if cmd[1] in string.printable:
|
if cmd[1].isprintable():
|
||||||
cmd[1] = cmd[1].replace("\n", " ")
|
cmd[1] = cmd[1].replace("\n", " ")
|
||||||
diario = filemanager.readfile("diario.txt")
|
diario = filemanager.readfile("diario.txt")
|
||||||
diario += str(int(time.time())) + "|" + cmd[1] + "\n"
|
diario += str(int(time.time())) + "|" + cmd[1] + "\n"
|
||||||
|
|
Loading…
Reference in a new issue