Skip to content

Commit

Permalink
[fix]bot参数确实
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Mar 2, 2024
1 parent dec1e8d commit 87e0a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/developer_tools/adopt_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def _(event: Event):
process_application = on_command("同意邀请", aliases={"同意申请"}, priority=5)

@process_application.handle()
async def _(event: Event, args: Message = CommandArg()):
async def _(bot: Bot, event: Event, args: Message = CommandArg()):
if checker(str(event.user_id), 10) == False:
await process_application.finish(error(10))
args = args.extract_plain_text()
Expand All @@ -43,7 +43,7 @@ async def _(event: Event, args: Message = CommandArg()):


deny_application = on_command("拒绝邀请", aliases={"拒绝邀请"}, priority=5)
async def _(event: Event, args: Message = CommandArg()):
async def _(bot: Bot, event: Event, args: Message = CommandArg()):
if checker(str(event.user_id), 10) == False:
await deny_application.finish(error(10))
args = args.extract_plain_text()
Expand Down

0 comments on commit 87e0a2a

Please sign in to comment.