From f47c1d7ddb259abefce63273d203fcd5c3059bbf Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Tue, 14 Jul 2020 23:48:55 +0800 Subject: Update other.py --- AyaBot/plugins/other.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/other.py b/AyaBot/plugins/other.py index 4c1aa9d..6a51ef0 100644 --- a/AyaBot/plugins/other.py +++ b/AyaBot/plugins/other.py @@ -26,3 +26,17 @@ async def _(session: CommandSession): return await session.send(f'本群目前共有{len(seach_group_member)}人') + + +@on_command('seach_this_group_qq', aliases=['本群列表'], only_to_me=False, permission=perm.GROUP) +async def _(session: CommandSession): + try: + seach_group_member = await session.bot.get_group_member_list( + group_id=session.event.group_id + ) + except: + print('error') + await session.send('获取数据时出问题,请重试') + return + + await session.send(f'本群成员信息:\n{seach_group_member}') -- cgit v1.2.3