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

需求:设置进群人数达到多少个,再发送欢迎语 #18

Open
worldligang opened this issue May 4, 2017 · 1 comment
Open

Comments

@worldligang
Copy link

现在是进一个人就发欢迎语,有些频繁,如果可以设置进群人数,比如说来5个人,再发送欢迎语

功能:
1,获取群内人数
2,判断人数是否达到5人(人数可以设置)
3,达到条件再发送欢迎语

@bestony
Copy link
Member

bestony commented May 4, 2017

先获取到 Group ,再通过len 判断人数

>>> bot.groups().search("美女")[0]
<Group: Linux中国◆技术美女群>
>>> len(bot.groups().search("美女")[0])
28

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