Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ablueday /
Created April 30, 2017 03:06 — forked from littlecodersh/
Demo of sending smart wishes through wechat.
import itchat, time
SINCERE_WISH = u'祝%s新年快乐!'
REAL_SINCERE_WISH = u'祝%s新年快乐!!'
def send_wishes():
friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
# 如果不是演示目的,把下面的方法改为itchat.send即可
ablueday /
Created April 24, 2017 06:25 — forked from littlecodersh/
Main script behind itchat robot
import itchat
# tuling plugin can be get here:
from tuling import get_response
def text_reply(msg):
if u'作者' in msg['Text'] or u'主人' in msg['Text']:
return u'你可以在这里了解他:'