update docs

This commit is contained in:
Richard Chien
2020-03-16 20:36:58 +08:00
parent 0ac6a03f0a
commit 0eb37da0b3
21 changed files with 174 additions and 132 deletions

View File

@ -6,7 +6,7 @@ from nonebot import on_notice, NoticeSession
@on_request('group')
async def _(session: RequestSession):
# 判断验证信息是否符合要求
if session.ctx['comment'] == '暗号':
if session.event.comment == '暗号':
# 验证信息正确,同意入群
await session.approve()
return

View File

@ -6,7 +6,7 @@ from nonebot import on_notice, NoticeSession
@on_request('group')
async def _(session: RequestSession):
# 判断验证信息是否符合要求
if session.ctx['comment'] == '暗号':
if session.event.comment == '暗号':
# 验证信息正确,同意入群
await session.approve()
return

View File

@ -6,7 +6,7 @@ from nonebot import on_notice, NoticeSession
@on_request('group')
async def _(session: RequestSession):
# 判断验证信息是否符合要求
if session.ctx['comment'] == '暗号':
if session.event.comment == '暗号':
# 验证信息正确,同意入群
await session.approve()
return