diff --git a/royalpack/commands/whoami.py b/royalpack/commands/whoami.py index cef27165..c3f281b0 100644 --- a/royalpack/commands/whoami.py +++ b/royalpack/commands/whoami.py @@ -6,16 +6,16 @@ import royalpack.bolts as rb @engi.use_database(db.lazy_session_class) @rb.use_ryglogin(allow_anonymous=True) @engi.TeleportingConversation -async def whoami(*, _msg: engi.Message, _account, **__): +async def whoami(*, _msg: engi.Message, _user: db.User, **__): """ - Scopri con che account sei loggato. + Scopri con che RYGaccount sei loggato. """ # TODO: improve output - if _account: - await _msg.reply(text=f"☀️ {_account}") + if _user: + await _msg.reply(text=f"☀️ {_user.name}") else: - await _msg.reply(text="☁️ Non sei loggato.") + await _msg.reply(text="☁️ Non hai effettuato il login.") __all__ = ("whoami",)