mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
Add constraint
This commit is contained in:
parent
86115e9e04
commit
dc889045c8
@ -12,6 +12,8 @@ GROUP_GREETING = (
|
||||
|
||||
@on_notice('group_increase')
|
||||
async def _(session: NoticeSession):
|
||||
if session.ctx['group_id'] not in (201865589, 672076603):
|
||||
return
|
||||
try:
|
||||
info = await session.bot.get_group_member_info(**session.ctx,
|
||||
no_cache=True)
|
||||
|
Loading…
Reference in New Issue
Block a user