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
|
||||
entry = entry.replace("\n", " ")
|
||||
time = update.message.date.timestamp()
|
||||
# TODO: add better file handling, maybe use GET requests?
|
||||
file = open("diario.txt", "a")
|
||||
file.write(f"{int(time)}|{entry}\n")
|
||||
file.close()
|
||||
|
@ -43,7 +42,6 @@ Sintassi: `/leggi <random | numerofrase>`"""
|
|||
if len(arguments) == 0 or len(arguments) > 1:
|
||||
await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/leggi <random | numerofrase>`")
|
||||
return
|
||||
# TODO: add better file handling, maybe use GET requests?
|
||||
file = open("diario.txt", "r")
|
||||
entries = file.read().split("\n")
|
||||
file.close()
|
||||
|
|
Loading…
Reference in a new issue