GithubHelp home page GithubHelp logo

wangcunjiang / tiny-wechat-robot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dongyuwei/tiny-wechat-robot

0.0 1.0 0.0 295 KB

A tiny wechat robot

License: MIT License

JavaScript 89.66% HTML 10.34%

tiny-wechat-robot's Introduction

tiny-wechat-robot

使用 code hijack 和 code injection (具体代码参见 src/phantomjs_wechat.js ) 来实现一个简单的微信机器人应用。

usage:

  1. make sure PhantomJS(ref) in your PATH
  2. npm run serve
  3. npm run wechat
  4. 扫码登陆微信

Tested with node v7.7.3 and PhantomJS V 2.1.1: phantomjs-2.1.1-macosx.zip or phantomjs-2.1.1-linux-x86_64.tar.bz2

核心功能

目前就是一个最简化的ping-pong应答机器人 (核心代码是 src/wechat_injection.js ):

  1. 收到ping,回复pong
  2. 收到pingping,回复pongpong
  3. 收到pingpingping,回复pongpongpong

tiny-wechat-robot's People

Contributors

dongyuwei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.