Mark long commands as read
This commit is contained in:
parent
0c9550841c
commit
f8a50f1201
@ -128,6 +128,7 @@ async def enter_dv_code(evt: CommandEvent) -> None:
|
||||
assert(evt.sender.command_status)
|
||||
req: dict = evt.sender.command_status["req"]
|
||||
passcode = evt.content.body
|
||||
await evt.mark_read()
|
||||
try:
|
||||
await KakaoTalkClient.register_device(passcode, **req)
|
||||
await _do_login(evt, req)
|
||||
@ -191,6 +192,7 @@ async def reset_device(evt: CommandEvent) -> None:
|
||||
if await evt.sender.is_logged_in():
|
||||
await evt.reply("This command requires you to be logged out.")
|
||||
else:
|
||||
await evt.mark_read()
|
||||
await evt.sender.logout(reset_device=True)
|
||||
await evt.reply(
|
||||
"Your next login will use a different device ID.\n\n"
|
||||
|
@ -71,6 +71,7 @@ async def ping(evt: CommandEvent) -> None:
|
||||
if not await evt.sender.is_logged_in():
|
||||
await evt.reply("You're not logged into KakaoTalk")
|
||||
return
|
||||
await evt.mark_read()
|
||||
# try:
|
||||
own_info = await evt.sender.get_own_info()
|
||||
# TODO catch errors
|
||||
|
Loading…
Reference in New Issue
Block a user