Skip to content

Commit

Permalink
🩹 修正部分语句
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Jul 31, 2024
1 parent 9fdd98f commit 7bcd374
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nonebot_plugin_wakatime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def _(event: Event, target: Match[At | int]):
)
except UserUnboundException:
await UniMessage.text(
f"{target_name}还没有绑定 Wakatime 账号!请私聊我并使用 /bind 命令进行绑定"
f"{target_name}还没有绑定 Wakatime 账号!请私聊我并使用 /wakatime bind 命令进行绑定" # noqa: E501
).finish(at_sender=True)
except ConnectTimeout:
await (
Expand Down Expand Up @@ -151,11 +151,9 @@ async def _(
@wakatime.assign("revoke")
async def _(event: Event, session: async_scoped_session):
if not (user := await session.get(User, event.get_user_id())):
await (
UniMessage.text("还没有绑定 wakatime 账号喔")
.keyboard(Button("input", "即刻绑定", text="/wakatime bind"))
.finish(at_sender=True, fallback=FallbackStrategy.ignore)
)
await UniMessage.text(
"还没有绑定 Wakatime 账号!请私聊我并使用 /wakatime bind 命令进行绑定"
).finish(at_sender=True)

resp = await API.revoke_user_token(event.get_user_id())
if resp.status_code == 200:
Expand Down

0 comments on commit 7bcd374

Please sign in to comment.