Archived
1
0
Fork 0

Too confusing

This commit is contained in:
Dianliang233 2021-11-27 20:18:02 +08:00
parent 6bcba0c368
commit d837175ced
No known key found for this signature in database
GPG key ID: 6C56F399D872F19C

View file

@ -147,7 +147,7 @@ aud = on_command('wiki_audit', alias='wa',
developers=['Dianliang233', 'OasisAkari'], required_superuser=True)
@aud.handle(['allow <apiLink>', 'block <apiLink>'])
@aud.handle(['trust <apiLink>', 'block <apiLink>'])
async def _(msg: MessageSession):
req = msg.parsed_msg
op = msg.session.sender
@ -170,7 +170,7 @@ async def _(msg: MessageSession):
await msg.sendMessage(result)
@aud.handle(['deny <apiLink>', 'unblock <apiLink>'])
@aud.handle(['distrust <apiLink>', 'unblock <apiLink>'])
async def _(msg: MessageSession):
req = msg.parsed_msg
api = req['<apiLink>']