mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Sistemato diario
This commit is contained in:
parent
c6f2fe1011
commit
8a6d9b1555
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/leggi <random | numerofrase>`", parse_mode="Markdown")
|
||||||
return
|
return
|
||||||
# Open the file
|
# Open the file
|
||||||
file = open("diario.txt", "r")
|
file = open("diario.txt", "r", encoding="utf8")
|
||||||
# Split the data in lines
|
# Split the data in lines
|
||||||
entries = file.read().split("\n")
|
entries = file.read().split("\n")
|
||||||
file.close()
|
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>`")
|
await bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!leggi <random | numerofrase>`")
|
||||||
return
|
return
|
||||||
# Open the file
|
# Open the file
|
||||||
file = open("diario.txt", "r")
|
file = open("diario.txt", "r", encoding="utf8")
|
||||||
# Split the data in lines
|
# Split the data in lines
|
||||||
entries = file.read().split("\n")
|
entries = file.read().split("\n")
|
||||||
file.close()
|
file.close()
|
||||||
|
|
Loading…
Reference in a new issue