1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Removed TODOs

This commit is contained in:
Steffo 2017-03-06 10:44:40 +01:00
parent 582112a199
commit 8b88a7aed8

View file

@ -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()