Make disconnections an important notice

This commit is contained in:
Andrew Ferrazzutti 2022-05-10 01:11:45 -04:00
parent 8da7f1efbd
commit 76d0ead99f
1 changed files with 4 additions and 1 deletions

View File

@ -749,7 +749,10 @@ class User(DBUser, BaseUser):
reason_suffix = "To reconnect, use the `sync` command." reason_suffix = "To reconnect, use the `sync` command."
else: else:
reason_suffix = "You are now logged out. To log back in, use the `login` command." reason_suffix = "You are now logged out. To log back in, use the `login` command."
await self.send_bridge_notice(f"Disconnected from KakaoTalk: {reason_str} {reason_suffix}") await self.send_bridge_notice(
f"Disconnected from KakaoTalk: {reason_str} {reason_suffix}",
important=True,
)
async def on_error(self, error: JSON) -> None: async def on_error(self, error: JSON) -> None:
await self.send_bridge_notice( await self.send_bridge_notice(