Happy Chinese Sprint Festival and wish you a good fortune in new Rooster Year! Here is antithetical couplet(对联) for this new Rooster Year, just inspired by dynamic programming language and serverless view points this morning.
Following up, there is the sample code to play Chat Robot in WeChat, the most popular online chat service of Chinese. It is a sample to demo how to use chat lib and how to use substitution in UTF-8 cprint format strings.
Enjoy!
道可道,非常道, Lambda 里外有乾坤
型可依,函亦纯, __iadd__ happy, 1
横批: Hello Cloud!
This sample Chat Robot will return the new year greeting if there is "年"(year) character in arriving message text part, or, the incoming message is a picture, video as people used to throw for new year greeting.
#!/usr/bin/env python |
//EOF