🔀 Merge pull request #63

Plugin: rauthman
This commit is contained in:
Ju4tCode 2020-11-19 13:02:27 +08:00 committed by GitHub
commit 1654dffa4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -14,5 +14,13 @@
"desc": "将B站UP主的动态和直播信息推送至QQ", "desc": "将B站UP主的动态和直播信息推送至QQ",
"author": "SK-415", "author": "SK-415",
"repo": "SK-415/HarukaBot" "repo": "SK-415/HarukaBot"
},
{
"id": "nonebot_plugin_rauthman",
"link": "nonebot-plugin-rauthman",
"name": "rauthman",
"desc": "基于规则的授权管理",
"author": "Lancercmd",
"repo": "Lancercmd/nonebot_plugin_rauthman"
} }
] ]

View File

@ -153,7 +153,7 @@ async def arg_handle(bot: Bot, event: Event, state: dict):
if state["arg1"] not in ["allow", "list"]: if state["arg1"] not in ["allow", "list"]:
await matcher.reject("参数不正确!请重新输入") await matcher.reject("参数不正确!请重新输入")
# 发送一些信息 # 发送一些信息
await bot.send("message") await bot.send(event, "message")
await matcher.send("message") await matcher.send("message")
await matcher.finish("message") await matcher.finish("message")
``` ```