mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Removed TODOs
This commit is contained in:
parent
582112a199
commit
8b88a7aed8
1 changed files with 0 additions and 2 deletions
|
@ -26,7 +26,6 @@ Sintassi: `/diario <frase>`"""
|
||||||
return
|
return
|
||||||
entry = entry.replace("\n", " ")
|
entry = entry.replace("\n", " ")
|
||||||
time = update.message.date.timestamp()
|
time = update.message.date.timestamp()
|
||||||
# TODO: add better file handling, maybe use GET requests?
|
|
||||||
file = open("diario.txt", "a")
|
file = open("diario.txt", "a")
|
||||||
file.write(f"{int(time)}|{entry}\n")
|
file.write(f"{int(time)}|{entry}\n")
|
||||||
file.close()
|
file.close()
|
||||||
|
@ -43,7 +42,6 @@ Sintassi: `/leggi <random | numerofrase>`"""
|
||||||
if len(arguments) == 0 or len(arguments) > 1:
|
if len(arguments) == 0 or len(arguments) > 1:
|
||||||
await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/leggi <random | numerofrase>`")
|
await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/leggi <random | numerofrase>`")
|
||||||
return
|
return
|
||||||
# TODO: add better file handling, maybe use GET requests?
|
|
||||||
file = open("diario.txt", "r")
|
file = open("diario.txt", "r")
|
||||||
entries = file.read().split("\n")
|
entries = file.read().split("\n")
|
||||||
file.close()
|
file.close()
|
||||||
|
|
Loading…
Reference in a new issue