mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-05-31 16:16:11 +08:00
🐛 修复「管理后台」重复发送消息
This commit is contained in:
parent
6e53c6f4b2
commit
cdd671b15f
@ -61,7 +61,7 @@ def init_fastapi(driver: "Driver"):
|
||||
|
||||
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user