Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加主动退群功能,另外求一个开发者的联系方式 #20

Open
LL123CLL opened this issue Aug 3, 2023 · 1 comment
Open

Comments

@LL123CLL
Copy link

LL123CLL commented Aug 3, 2023

最近在用这个插件做私骰,看到没有主动退群功能就写了一下。
然后想联系一下开发者大大,但是没找到联系方式

dismiss = on_startswith(".dismiss", priority=5)

@dismiss.handle()
async def exit_group(event: GroupMessageEvent, matcher: Matcher, bot: Bot, name: str = Depends(get_name)):
    """
    主动退群
    """
    group_id = event.group_id
    await bot.set_group_leave(group_id=group_id, is_dismiss=True)
    await matcher.finish(f"再见啦,{name} 。")
@BigOrangeQWQ
Copy link
Owner

BigOrangeQWQ commented Aug 3, 2023

好感动,原来我的插件还有人用 ;w;

初期的时候是想过要不要加退群的,但是这方面的思考是:

  • 这最好只是一个围绕骰子的功能与骰子的插件
  • 市场具有退群等管理相关功能写的更好的插件
    所以并没有在其中增加dismiss这些管理类的指令

另外你提醒了我该更新插件的元数据了
至于联系方式的话个人的QQ是2284086963,另外本人其实在nb的用户群与开发者群。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants