1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Missed 2!

This commit is contained in:
Steffo 2017-03-12 19:11:44 +01:00
parent c0d1a257a2
commit b12dcf3ff5

View file

@ -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)