npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

weixin-robot-example

v0.0.5

Published

weixin-robot 模块示例

Downloads

7

Readme

微信公共帐号机器人示例 Build Status

本地运行

git clone https://github.com/node-webot/webot-example.git
cd webot-example/
npm install
make start

其中,make start 命令会调用 node app.js 。 建议你 fork 一份自己的版本,这样你就可以任意做出更改和调试了。

消息调试

使用 webot-cli 命令行工具来发送测试消息。

安装:

npm install webot-cli -g

npm install -g 代表全局安装 npm 模块,你可能需要 sudo 权限。

使用:

webot help            # 查看使用帮助
webot send Hello      # 发送一条叫「Hello」的消息
webot send image      # 调试图片消息
webot send location   # 调试地理位置
webot send event      # 调试事件消息

webot-cli 默认访问的接口地址是 http://127.0.0.1:3000 ,要调试本示例的程序, 你需要指定 `webot send --des http://127.0.0.1:3000/wechat'

在微信上试用此示例

  • 微信账号:webot-test

qrcode: webot-test

搭建你自己的机器人

  1. fork 本仓库,修改 package.json 里的各项属性
  2. 修改你自己的 app.js ,填写你在微信后台输入的 token
  3. 参考 rules/index.js ,新建你自己的回复规则

发布到云平台

仓库中的 Procfileheroku 的配置文件。 manifest.ymlcloudfoundry 的示例配置文件。

Credit

weixin-robot初始版本@ktmud实现, @atian重构并扩展为 0.2 版本。目前的测试用例也大部分由他完成。

[weixin-robot] 使用了 @JacksonTianwechat 组件。