a wechat bot developed for geeks
Project description
# WechatBot [![Build Status](https://travis-ci.org/chuanwu/WechatBot.svg?branch=master)](https://travis-ci.org/chuanwu/WechatBot) [![codecov](https://codecov.io/gh/chuanwu/WechatBot/branch/master/graph/badge.svg)](https://codecov.io/gh/chuanwu/WechatBot) [![PyPI version](https://badge.fury.io/py/wechatbot.svg)](https://badge.fury.io/py/wechatbot) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
WechatBot is a wechat bot built for geeks.
### Quick Start
#### 0. 支持pip安装
pip install wechatbot
已支持pip安装,但是文档还没有更新,请等待更新。
#### 1. 安装依赖并执行测试脚本
` make test `
#### 2. 启动WechatBot
` make mybot `
扫描二维码之后,机器人就跑起来啦。 这时,可以向机器人发送一个!ping的消息来看看服务是否正常。
#### 3. 功能开发
将你所实现的程序放到plugin/目录下,并使用该装饰器即可。
` from wechatbot import r @r.register('COMMAND_STRING') `
具体细节请看`plugin/ping_demo.py`。
## 规划
接下来会把Bot做成一个更加基础的服务,只对外暴露两个模块:
在接受指令之后发送定制消息
后续会增加session的概念,可能会支持AI,并通过向机器人发送消息来开关AI。
来自用户的每一条消息都是作为一个命令。
主动向某个用户发送消息
### Docs
For more details, you may like [reading the docs](http://tinker.readthedocs.io/).
In the end, thanks to [@elezhangwen](https://github.com/elezhangwen).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wechatbot-1.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86fe214d6885e8ce3d5fb83fb59b75df3ed06a47791e53ddfd8bb4bce21d94d |
|
MD5 | 5b6c691a0a7dd335f4ea8446d3cebb23 |
|
BLAKE2b-256 | e2ffecfc839afdf4aeda4602abb25fa4dd3736130bc3cce5cc1b2eee42f1205b |