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

🐛 Fix discord login message

This commit is contained in:
Steffo 2021-04-30 13:45:16 +02:00
parent 0f3d13fc8a
commit 54465954a0
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -88,13 +88,13 @@ async def login(*, _msg: engi.Message, _session: so.Session, _imp, **__):
elif isinstance(_imp, royalnet_discordpy.DiscordpyPDAImplementation): elif isinstance(_imp, royalnet_discordpy.DiscordpyPDAImplementation):
sender = await _msg.sender 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...") log.debug(f"Committing session...")
_session.commit() _session.commit()
log.debug(f"Done, notifying the user...") 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: async def enforce_private_message(msg: engi.Message) -> engi.Channel: