mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Missed 2!
This commit is contained in:
parent
c0d1a257a2
commit
b12dcf3ff5
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ Sintassi: `/diario <frase>`"""
|
||||||
file.write(f"{int(time)}|{entry}\n")
|
file.write(f"{int(time)}|{entry}\n")
|
||||||
file.close()
|
file.close()
|
||||||
del file
|
del file
|
||||||
await update.message.chat.send_message(bot, "Aggiunto al diario!")
|
await update.message.reply(bot, "Aggiunto al diario!")
|
||||||
|
|
||||||
|
|
||||||
async def leggi(bot, update, arguments):
|
async def leggi(bot, update, arguments):
|
||||||
|
@ -149,7 +149,7 @@ async def changepassword(bot, update, arguments):
|
||||||
|
|
||||||
Sintassi: `/changepassword <newpassword>`"""
|
Sintassi: `/changepassword <newpassword>`"""
|
||||||
if len(arguments) != 2:
|
if len(arguments) != 2:
|
||||||
await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/changepassword <oldpassword> <newpassword>`")
|
await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/changepassword <oldpassword> <newpassword>`")
|
||||||
return
|
return
|
||||||
# TODO: this can be improved, maybe?
|
# TODO: this can be improved, maybe?
|
||||||
logged_user = currently_logged_in(update)
|
logged_user = currently_logged_in(update)
|
||||||
|
|
Loading…
Reference in a new issue