From 78b256eab43e61101ab61c67590637ee35ca6201 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 12 Jul 2020 10:09:48 +0800 Subject: Update other.py --- AyaBot/plugins/other.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'AyaBot/plugins') 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 -- cgit v1.2.3