Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icyleaf/wechat-bot

还不知道如何走向的微信机器人
https://github.com/icyleaf/wechat-bot

ruby wechat wechat-bot weixin-bot

Last synced: 23 days ago
JSON representation

还不知道如何走向的微信机器人

Awesome Lists containing this project

README

        

# wechat-bot

[![Build Status](https://img.shields.io/circleci/project/github/icyleaf/wechat-bot.svg?style=flat)](https://circleci.com/gh/icyleaf/wechat-bot)
[![Inline docs](http://inch-ci.org/github/icyleaf/wechat-bot.svg?style=flat)](https://inch-ci.org/github/icyleaf/wechat-bot)
[![Gem version](https://img.shields.io/gem/v/wechat-bot.svg?style=flat)](https://rubygems.org/gems/wechat-bot)
[![License](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](LICENSE.txt)

微信机器人 Ruby 版本。

## 快速上手

```ruby
require 'wechat-bot'

bot = WeChat::Bot.new do
on :message, "ping" do |message|
message.reply "PONG"
end
end

bot.start
```