mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
printme
This commit is contained in:
parent
2f0951bd7c
commit
4e265ce655
1 changed files with 3 additions and 0 deletions
3
bot.py
3
bot.py
|
@ -640,11 +640,14 @@ while True:
|
||||||
tosend += u['name'] + "\n"
|
tosend += u['name'] + "\n"
|
||||||
telegram.sendmessage(tosend, sentin, source)
|
telegram.sendmessage(tosend, sentin, source)
|
||||||
elif text.startswith('/diario'):
|
elif text.startswith('/diario'):
|
||||||
|
print("@" + username + ": /diario ")
|
||||||
cmd = text.split(" ", 1)
|
cmd = text.split(" ", 1)
|
||||||
d = filemanager.readfile("diario.txt")
|
d = filemanager.readfile("diario.txt")
|
||||||
d += str(time.time()) + " | " + cmd[1] + "\n"
|
d += str(time.time()) + " | " + cmd[1] + "\n"
|
||||||
filemanager.writefile("diario.txt", d)
|
filemanager.writefile("diario.txt", d)
|
||||||
telegram.sendmessage("Aggiunto al diario RYG.", sentin, source)
|
telegram.sendmessage("Aggiunto al diario RYG.", sentin, source)
|
||||||
|
else:
|
||||||
|
print("@" + username + " bloccato.")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue