From 8b88a7aed828fc3e0d7a6e266404fd214c1799ee Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 6 Mar 2017 10:44:40 +0100 Subject: [PATCH] Removed TODOs --- basicbot.py | 2 -- 1 file changed, 2 deletions(-) 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()