From 8a6d9b1555ffc67130768d18ff358477e61ddba3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Mar 2017 13:52:49 +0200 Subject: [PATCH] Sistemato diario --- grandbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grandbot.py b/grandbot.py index 181e9ceb..3cb171b4 100644 --- a/grandbot.py +++ b/grandbot.py @@ -125,7 +125,7 @@ Sintassi: `/leggi `""" await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/leggi `", parse_mode="Markdown") return # Open the file - file = open("diario.txt", "r") + file = open("diario.txt", "r", encoding="utf8") # Split the data in lines entries = file.read().split("\n") file.close() @@ -159,7 +159,7 @@ async def leggi_discord(bot, message, arguments): await bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!leggi `") return # Open the file - file = open("diario.txt", "r") + file = open("diario.txt", "r", encoding="utf8") # Split the data in lines entries = file.read().split("\n") file.close()