summaryrefslogtreecommitdiff
path: root/AyaBot/plugins
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-07-12 10:09:48 +0800
committerGitHub <[email protected]>2020-07-12 10:09:48 +0800
commit78b256eab43e61101ab61c67590637ee35ca6201 (patch)
tree00b2326faf25bebfd8932eb969bbb9d91b917bd3 /AyaBot/plugins
parent6ed4e07e45d18a154b7598b90c4837c8e3954dd2 (diff)
downloadATRI-78b256eab43e61101ab61c67590637ee35ca6201.tar.gz
ATRI-78b256eab43e61101ab61c67590637ee35ca6201.tar.bz2
ATRI-78b256eab43e61101ab61c67590637ee35ca6201.zip
Update other.py
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r--AyaBot/plugins/other.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/AyaBot/plugins/other.py b/AyaBot/plugins/other.py
index 2ea8766..337b4ba 100644
--- a/AyaBot/plugins/other.py
+++ b/AyaBot/plugins/other.py
@@ -28,19 +28,3 @@ async def _(session: CommandSession):
return
await session.send(f'本群目前共有{len(seach_group_member)}人')
-
-@on_command('send_all_group', aliases=['公告', '群发', '推送'], only_to_me=False)
-async def send_all_group(session: CommandSession):
- if session.event.user_id in master:
- msg=session.current_arg.strip()
- if not msg:
- msg = session.get('message', prompt='请键入内容')
- group_list = await session.bot.get_group_list()
- for group in group_list:
- if group['group_id'] not in bangroup:
- try:
- await bot.send_group_msg( group_id=group['group_id'], message=msg)
- except:
- print('error')
- pass
- await session.send('推送完成') \ No newline at end of file