Skip to main content

a wechat bot developed for geeks

Project description

WechatBot

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

WechatBot is a wechat bot built for geeks.

1. 快速上手

1.1 安装

pip install wechatbot

1.2 用法

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

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


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

写完你的代码之后,可以执行`make develop`,根据提示扫描二维码之后,机器人就跑起来啦。 这时,可以向机器人发送一个ping的消息来看看服务是否正常。

2. 规划

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

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

  • 主动向某个用户发送消息 [doing]

谢谢阅读!

Good luck, have fun!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wechatbot-1.0.13.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

wechatbot-1.0.13-py2-none-any.whl (10.6 kB view details)

Uploaded Python 2

File details

Details for the file wechatbot-1.0.13.tar.gz.

File metadata

  • Download URL: wechatbot-1.0.13.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wechatbot-1.0.13.tar.gz
Algorithm Hash digest
SHA256 8c16c05bf7c024bbe9d327fdf5c2334a26a76931a9c795954c681d61d0120829
MD5 88bd135eca6e7afe68e08628b914671a
BLAKE2b-256 f6bf1fc0c4110717c9e8c42d38c3a437965dbb2493fc84c8b6f2b111e39cfdca

See more details on using hashes here.

File details

Details for the file wechatbot-1.0.13-py2-none-any.whl.

File metadata

File hashes

Hashes for wechatbot-1.0.13-py2-none-any.whl
Algorithm Hash digest
SHA256 ffe7b859b538e8bf32204301626aed7ee781ad8f6d3455ac5bb5a4d9056e33e6
MD5 009ca30ab82348c0d834ecdede791f33
BLAKE2b-256 1ca330f24e71a04cca087d6fa93203e6ad702427e91df0f821c2615cd0009a33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page