from wxpy import *
bot = Bot(cache_path=True)
bot.file_helper.send("Hello world")
groups = bot.groups()
for group in groups:
    group.send("我出来逗比一下")
# my_friend = bot.friends().search('忽而今夏',  city="娄底")[0]
# my_friend1 = bot.friends().search('毒药', city="深圳")[0]
# group = bot.groups().search("开车了")[0]
# for member in group:
#     print(member)
#
# group1 = bot.groups().search("吃货")[0]
# for member in group1:
#     print(member.name)
#     if member.name == "呵呵":
#         continue
#     friend = bot.friends().search(member.name)[0]
#     friend.send("我在使用脚本给你发信息,看到信息,不用回复。")
groups = bot.groups()
# for group in groups:
#     group.send("我继续出来逗比一下")
friends = bot.friends()
for friend in friends:
    if friend.name in ["Woody 梧桐", "Smy", "lison", "李慧嫱", "枫", "春", "飞奔的鱼🐠", "Running", "邱凯", "毒药"]:
        friend.send("Great artist always hid themselves in their work.")
        friend.send("我在搞事情, 看到信息不用回复")