mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
update docs
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user