From dc889045c894fdacbef1f2dec1487974d10fa9e8 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Sat, 30 Jun 2018 09:31:16 +0800 Subject: [PATCH] Add constraint --- none_demo/plugins/greeting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/none_demo/plugins/greeting.py b/none_demo/plugins/greeting.py index a90ce170..e673e4f4 100644 --- a/none_demo/plugins/greeting.py +++ b/none_demo/plugins/greeting.py @@ -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)