diff --git a/basicbot.py b/basicbot.py index 747b80b2..9d116465 100644 --- a/basicbot.py +++ b/basicbot.py @@ -26,7 +26,6 @@ Sintassi: `/diario `""" 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 `""" if len(arguments) == 0 or len(arguments) > 1: await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/leggi `") return - # TODO: add better file handling, maybe use GET requests? file = open("diario.txt", "r") entries = file.read().split("\n") file.close()