Skip to main content

a wechat bot developed for geeks

Project description


WechatBot is a wechat bot built for geeks.

1. 快速上手

1.1 安装

pip install wechatbot

1.2 用法

贴上示例代码, wechatbot/。

# -*- 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. 规划


  • 在接受指令之后发送定制消息 [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.

Files for wechatbot, version 1.0.13
Filename, size File type Python version Upload date Hashes
Filename, size wechatbot-1.0.13-py2-none-any.whl (10.6 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size wechatbot-1.0.13.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page