Metadata-Version: 2.0
Name: wechatbot
Version: 1.0.11
Summary: a wechat bot developed for geeks
Home-page: https://github.com/chuanwu/WechatBot
Author: chuanwu
Author-email: chuanwusun@gmail.com
License: MIT
Keywords: wechat bot chatops
Platform: UNKNOWN
Requires-Dist: Pillow (==4.0.0)
Requires-Dist: anyjson (==0.3.3)
Requires-Dist: beautifulsoup4 (==4.5.1)
Requires-Dist: enum34 (==1.1.6)
Requires-Dist: pypng (==0.0.18)
Requires-Dist: pytest (==3.0.7)
Requires-Dist: qrcode (==5.3)
Requires-Dist: requests (==2.7.0)
Requires-Dist: simplejson (==3.7.3)
Requires-Dist: ujson (==1.34)

=========================
WechatBot
=========================

.. image:: https://travis-ci.org/chuanwu/WechatBot.svg?branch=master

*WechatBot* is a wechat bot built for geeks.

=====================
 1. 快速上手
=====================


---------------------
1.1 安装
---------------------

.. code-block:: python

       pip install wechatbot

---------------------
1.2 用法
---------------------

贴上示例代码， wechatbot/ping.py。

.. code-block:: python

    # -*- coding:utf-8 -*-
    from wechatbot import WechatBot, send_my_msg


    class MyBot(WechatBot):
        def text_reply(self, msg):
            if "ping" in msg:
                return 'pong'

    if __name__ == "__main__":
        # 要发送的消息，填写你的微信名
        send_my_msg("Hello", u"孙传武")


写完你的代码之后，可以执行`make develop`，根据提示扫描二维码之后，机器人就跑起来啦。
这时，可以向机器人发送一个ping的消息来看看服务是否正常。
对了，短暂退出不需要重新扫描二维码登录哦～

========================
2. 规划
========================

接下来会把Bot做成一个更加基础的服务，只对外暴露两个模块:

- 在接受指令之后发送定制消息 [done]


- 主动向某个用户发送消息 [done]


谢谢阅读！

**Good luck, have fun!**


