From 54465954a0f8dde860e48171e5b69c27a688a96f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 30 Apr 2021 13:45:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20discord=20login=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalpack/commands/login.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/royalpack/commands/login.py b/royalpack/commands/login.py index ffda3b3d..ec6b614a 100644 --- a/royalpack/commands/login.py +++ b/royalpack/commands/login.py @@ -88,13 +88,13 @@ async def login(*, _msg: engi.Message, _session: so.Session, _imp, **__): elif isinstance(_imp, royalnet_discordpy.DiscordpyPDAImplementation): sender = await _msg.sender - tg = await register_user_discord(session=_session, user_info=ui, discord_user=sender._user) + ds = await register_user_discord(session=_session, user_info=ui, discord_user=sender._user) log.debug(f"Committing session...") _session.commit() log.debug(f"Done, notifying the user...") - await private.send_message(text=f"↔️ Sincronizzazione con Telegram riuscita! Sei loggato come {tg.mention()}!") + await private.send_message(text=f"↔️ Sincronizzazione con Discord riuscita! Sei loggato come <@{ds.id}>!") async def enforce_private_message(msg: engi.Message) -> engi.Channel: