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

Sistemato diario

This commit is contained in:
Steffo 2017-03-26 13:52:49 +02:00
parent c6f2fe1011
commit 8a6d9b1555

View file

@ -125,7 +125,7 @@ Sintassi: `/leggi <random | numerofrase>`"""
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/leggi <random | numerofrase>`", 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 <random | numerofrase>`")
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()