summaryrefslogtreecommitdiff
path: root/AyaBot/plugins
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-07-14 23:48:55 +0800
committerGitHub <[email protected]>2020-07-14 23:48:55 +0800
commitf47c1d7ddb259abefce63273d203fcd5c3059bbf (patch)
treea808f7163c7417c367d4caa76de7a7a4b402acdb /AyaBot/plugins
parente6b4da7e6f3c24f2db928d44919bbb0e2bb27958 (diff)
downloadATRI-f47c1d7ddb259abefce63273d203fcd5c3059bbf.tar.gz
ATRI-f47c1d7ddb259abefce63273d203fcd5c3059bbf.tar.bz2
ATRI-f47c1d7ddb259abefce63273d203fcd5c3059bbf.zip
Update other.py
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r--AyaBot/plugins/other.py14
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}')