初尝wxpy用python做告警

为什么80%的码农都做不了架构师?>>>   hot3.png

 

from wxpy import *

bot = Bot()

my_friend = bot.friends().search('Peterguo')[0]


messages = bot.messages.search(keywords='test', sender=bot.self)

for message in messages:
    print(message)


my_friend.send('Hello, WeChat!')

@bot.register()
def print_others(msg):
    print(msg)
    msg.reply("Hello" + str(msg))


embed()

http://wxpy.readthedocs.io/zh/latest/chats.html

https://www.cnblogs.com/jaycekon/p/WxpyRedis.html

转载于:https://my.oschina.net/sanpeterguo/blog/1580649

你可能感兴趣的:(初尝wxpy用python做告警)