summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
1 files changed, 14 insertions, 0 deletions
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}')