Skip to content

Commit

Permalink
🐛 修复「管理后台」重复发送消息
Browse files Browse the repository at this point in the history
  • Loading branch information
suyiiyii committed Oct 28, 2024
1 parent 6e53c6f commit cdd671b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_bison/admin_page/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def register_router_fastapi(driver: "Driver", socketio):


def register_get_token_handler():
get_token = on_command("后台管理", rule=to_me(), priority=5, aliases={"管理后台"})
get_token = on_command("后台管理", rule=to_me(), priority=5, aliases={"管理后台"}, block=True)

@get_token.handle()
async def send_token(bot: "Bot", event: PrivateMessageEvent, state: T_State):
Expand Down

0 comments on commit cdd671b

Please sign in to comment.