1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54: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 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()