• Stars
    star
    315
  • Rank 132,951 (Top 3 %)
  • Language
    TypeScript
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DEPRECATED: One puppet based on iPad protocal for Wechaty

THIS REPO HAS BEEN DEPRECATED

Learn more about Wechaty Puppet Services from https://wechaty.js.org/docs/puppet-services

You can use Wechaty with other puppet services like WXWork, Rock, PadLocal, etc as well.

通知 (Nov, 2020)

亲爱的开发者,您好!

为了更好的提供服务,JuziBot Puppet Service 计划于11月30日进行一次 wechaty-puppet-padplus 重大升级。

如您正在使用 wechaty-puppet-padplus服务, 则需要进行如下升级操作。(如未使用 wechaty-puppet-padplus,可安全的忽视本通知)

wechaty-puppet-padplus 升级说明如下:

  1. 卸载 wechaty-puppet-padplus, 安装 wechaty-puppet-hostie
  2. 代码中启动wechaty的 wechaty-puppet-padplus 更换成 wechaty-puppet-hostie

详细说明: wechaty-puppet-padplus 将会在11月30日下线,已付费的用户可以升级到下面的两个puppet:

  1. wechaty-puppet-donut: 基于 windows 的个人微信,除了 padplus 的基础功能外,还支持接受企业微信消息,详细信息见 https://github.com/juzibot/donut-tester
  2. wechaty-puppet-wxwork: 基于 windows 客户端的企业微信,详细信息见 https://github.com/juzibot/wxwork-tester

如在11月30日前没有升级代码库,wechaty-puppet-padplus 服务将会在12月1日00:00停止服务,导致您托管的微信不可用,所以强烈建议提前进行代码升级,以避免机器人意外终止服务。

如果您有任何问题,请及时与我们的客服联系,微信:juzibot

详情见:https://github.com/wechaty/puppet-service-providers/issues/11

WECHATY-PUPPET-PADPLUS

Powered by Wechaty NPM Version npm (tag) TypeScript Linux/Mac Build Status

Notice

Our Mission: Make it easy to build a WeChat Chatbot for developers.

We provide a free token for the developers who have a strong will and ability to build a valuable chatbot for users.

See more: Token Support, Everything about wechaty

Install

1. Init

1.1. Check your Node version first

node --version // v10.16.0

for windows system

To make sure you could install wechaty-puppet-padplus successfully, you have to start PowerShell as Administrator and run these commands:

npm install -g windows-build-tools

npm install -g node-gyp

1.2. Create your bot folder and do some init config

mkdir my-padplus-bot && cd my-padplus-bot

npm init -y

npm install ts-node typescript -g

tsc --init --target ES6

touch bot.ts // copy the example code to it

2. Install Wechaty Dependencies

npm install wechaty@latest

npm install wechaty-puppet-padplus@latest

Or some new features developing version:

npm install wechaty@next

npm install wechaty-puppet-padplus@next

3. Install Other Dependencies

There's no need to install wechaty-puppet in my-padplus-bot

npm install qrcode-terminal
...

4. Run

If you want to see detail logs about your bot, just run:

BROLOG_LEVEL=silly ts-node bot.ts

or

BROLOG_LEVEL=silly node bot.js

5. Cache Option

wechaty-puppet-padplus use flash-store or mongo as cache store

  • flash-store[default]
  • mongo

If you want to use mongo as cache sotre, just set the cacheOption, like this:

const puppet: Puppet = new PuppetPadplus({
  token,
  cacheOption: {
    type: 'mongo',
    url: 'mongodb://127.0.0.1:27017/testdb',
  },
})

Caution

When you use mongo as cache store, wechaty-puppet-cache use some tables which have wechaty-cache prefix. detail>>

6. Other Tips

Set environment in windows

$Env:BROLOG_LEVEL='silly'
ts-node bot.ts

If step 1~3 can not help you install successfully, please try this suggestion, otherwise just skip it please.

rm -rf node_modules package-lock.json
npm install

Example

// bot.ts
import { Contact, Message, Wechaty } from 'wechaty'
import { ScanStatus } from 'wechaty-puppet'
import { PuppetPadplus } from 'wechaty-puppet-padplus'
import QrcodeTerminal from 'qrcode-terminal'

const token = 'your-token'

const puppet = new PuppetPadplus({
  token,
})

const name  = 'your-bot-name'

const bot = new Wechaty({
  puppet,
  name, // generate xxxx.memory-card.json and save login data for the next login
})

bot
  .on('scan', (qrcode, status) => {
    if (status === ScanStatus.Waiting) {
      QrcodeTerminal.generate(qrcode, {
        small: true
      })
    }
  })
  .on('login', (user: Contact) => {
    console.log(`login success, user: ${user}`)
  })
  .on('message', (msg: Message) => {
    console.log(`msg : ${msg}`)
  })
  .on('logout', (user: Contact, reason: string) => {
    console.log(`logout user: ${user}, reason : ${reason}`)
  })
  .start()

How to emit the message that you sent

Please use environment variable PADPLUS_REPLAY_MESSAGE to activate this function.

PADPLUS_REPLAY_MESSAGE=true node bot.js

Puppet Comparison

功能 padpro padplus macpro
<消息>
收发文本
收发个人名片
收发图文链接
发送图片、文件 (对内容有大小限制,20M以下)
接收图片、文件 (对内容有大小限制,25M以下)
发送视频
接收视频
发送小程序
接收动图
发送动图
接收语音消息
发送语音消息
转发文本
转发图片
转发图文链接
转发音频
转发视频
转发文件
转发动图
转发小程序
<群组>
创建群聊
设置群公告
获取群公告
群二维码
拉人进群
踢人出群
退出群聊
改群名称
入群事件
离群事件
群名称变更事件
@群成员
群列表
群成员列表
群详情
<联系人>
修改备注
添加好友
自动通过好友
添加好友
好友列表
好友详情
<其他>
登录微信
扫码状态
退出微信
依赖协议 iPad iPad Mac

More Repositories

1

wechaty

Conversational RPA SDK for Chatbot Makers. Join our Discord: https://discord.gg/7q8NBZbQzt
TypeScript
19,950
star
2

python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
Python
1,568
star
3

getting-started

A Starter Project Template for Wechaty works out-of-the-box
JavaScript
781
star
4

puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
TypeScript
619
star
5

go-wechaty

Go Wechaty is a Conversational SDK for Chatbot Makers Written in Go
Go
480
star
6

puppet-xp

Wechaty Puppet WeChat Windows Protocol
JavaScript
449
star
7

java-wechaty

Java Wechaty is a Conversational SDK for Chatbot Makers Written in Kotlin
Kotlin
409
star
8

puppet-wechat

Wechaty Puppet Provider for WeChat
TypeScript
402
star
9

wechaty-puppet-padchat

Padchat Puppet for Wechaty
TypeScript
281
star
10

wechaty-puppet-padpro

TypeScript
238
star
11

puppet

Puppet Provider Abstraction for Wechaty
TypeScript
225
star
12

python-wechaty-getting-started

Python Wechaty Starter Project Template that Works Out-of-the-Box
Makefile
180
star
13

matrix-appservice

Wechaty [Matrix] Application Services Bridge
TypeScript
132
star
14

docusaurus

Wechaty Official Website for Documentations, Powered by Docusaurus.
MDX
112
star
15

puppet-wechat4u

Wechat4u Puppet for Wechaty
TypeScript
92
star
16

friday

Friday is an Assistant BOT Built on Wechaty for Serving our Community
TypeScript
81
star
17

dotnet-wechaty

.NET Wechaty is a Conversational SDK for Chatbot Makers Written in C#
C#
78
star
18

puppet-service

Wechaty Puppet Provider for providing/consuming the Wechaty Puppet Service
TypeScript
67
star
19

docker-getting-started

Getting Started Template for Docker Users
TypeScript
64
star
20

python-wechaty-template

getting started project template for python-wechaty
Python
56
star
21

php-wechaty

PHP Wechaty is a Conversational SDK for Chatbot Makers Written in PHP https://github.com/wechaty/docker-php-wechaty-getting-started
PHP
55
star
22

java-wechaty-getting-started

Java Wechaty Starter Project Template that Works Out-of-the-Box
Makefile
46
star
23

puppet-mock

Puppet Mocker for Wechaty (& A Puppet Template Starter)
TypeScript
45
star
24

go-wechaty-getting-started

Go Wechaty starter project template that works out-of-the-box
Makefile
44
star
25

bot5

Bot Friday Club - BOT5
TypeScript
39
star
26

python-wechaty-puppet-itchat

Python Wechaty Puppet Powered by Itchat
Python
38
star
27

jekyll

Wechaty Official Website for News, Blogs, Contributor Profiles, Powered by Jekyll.
Java
37
star
28

plugin-contrib

Wechaty Plugin Ecosystem Contrib Package
TypeScript
33
star
29

summer

Summer of Wechaty (SoW) is a program for connecting students with the Wechaty community for coding & tech writing.
32
star
30

chatbot-0-to-1

Chatbot Zero to One
TypeScript
31
star
31

puppet-supports

Wechaty Puppet Services (WPS)
31
star
32

rust-wechaty

Rust Wechaty is a Conversational RPA SDK for Chatbot Makers written in Rust
Rust
24
star
33

puppet-whatsapp

Wechaty Puppet for Whatsapp
TypeScript
24
star
34

puppet-lark

Wechaty Puppet for Lark
TypeScript
23
star
35

webwx-app-tracker

Live Tracking webwxApp Version Change
JavaScript
22
star
36

openapi

Wechaty REST API Server with OpenAPI Specification (aka. Swagger)
JavaScript
22
star
37

wechaty-electron

Wechaty for Desktop
JavaScript
18
star
38

puppet-official-account

Wechaty Puppet for WeChat Official Account
TypeScript
17
star
39

java-wechaty-bak

Java Wechaty is an RPA SDK for WeChat Individual Account
Java
15
star
40

botbuilder-wechaty-adapter

Microsoft Bot Framework v4 Adapter for Wechat Individual Account
TypeScript
15
star
41

puppet-oicq

Wechaty Puppet for QQ based on project takayama-lily/oicq-template
TypeScript
15
star
42

wechaty-weixin-openai

Wechaty plugin for integrate your bot with weixin openai-sdk
TypeScript
13
star
43

python-wechaty-plugin-contrib

Wechaty Plugin Ecosystem Contrib Package
Python
13
star
44

python-wechaty-puppet

Python Puppet Provider Abstraction for Wechaty
Python
12
star
45

dotnet-wechaty-getting-started

.NET Wechaty Starter Project Template that Works Out-of-the-Box
C#
11
star
46

heroku-wechaty-getting-started

Wechaty Starter Project Template with Heroku Deploy Button that Works Out-of-the-Box
TypeScript
10
star
47

puppet-walnut

Wechaty Puppet Walnut - 硬核桃5G消息
TypeScript
9
star
48

mac-wechat-app-tracker

macOS WeChat.app header files version history (automatic updated)
Objective-C
9
star
49

python-wechaty-puppet-service

Python Puppet Service Client for Wechaty
Python
8
star
50

wechaty-puppet-dingtalk

TypeScript
8
star
51

php-wechaty-getting-started

PHP Wechaty Starter Project Template that Works Out-of-the-Box
Makefile
8
star
52

scala-wechaty

Scala Wechaty is a Conversational SDK for Chatbot Makers Written in Scala
Scala
8
star
53

python-wechaty-puppet-padplus

Python Hostie Puppet for Wechaty
Python
7
star
54

easy-matrix-wechaty

A simple and fast temporary deployment solution for [matrix-appservice-wechaty](https://github.com/wechaty/matrix-appservice-wechat) with matrix. (Easy to be a multi bridge server for other matrix bridges.)
Shell
7
star
55

wishlist

Puppets, Bots, and other Tooling Requested by Community Members
6
star
56

im-aggregation

Aggregate WeCom, WeChat, and WhatsApp together.
TypeScript
6
star
57

chat

Friday BOT empowered by GPT-4 with maximum token length 32K, grounded with Wechaty SDK knowledge
5
star
58

wechaty-ui

Web UI for polyglot-wechaty based on the plugin system.
Vue
5
star
59

cqrs

An event-driven architecture wrapper for Wechaty that applies the CQS principle by using separate Query and Command messages to retrieve and modify the bot state, respectively.
TypeScript
5
star
60

vorpal-contrib

Wechaty Vorpal Chat CLI (Command Line Interface) Commands
TypeScript
4
star
61

PMC

Project Management Committees
Shell
4
star
62

wechaty-puppet-macOS

Wechaty Puppet Provider: macOS,make your macOS as a service provider for your self.
Objective-C
4
star
63

ha

High Available (HA) Wechaty is a Load Balance for providing High Availability for Wechaty Chatbot by spreading requests across multiple WeChat individual accounts.
TypeScript
4
star
64

redux

Wechaty Redux Plugin, Reducer Bundle, and Ducks Proposal Implementation.
TypeScript
4
star
65

wechaty-got-kicked-out

this is a wechaty plugin to monitor whether your bot is kicked out of group chat.
TypeScript
4
star
66

plugin-qnamaker

QnAMaker.ai Plugin for Wechaty
TypeScript
4
star
67

bot5-assistant

BOT Friday Club Meeting Assistant BOT
TypeScript
3
star
68

plugin-chatopera

🐸 Chatopera Plugin for Wechaty
TypeScript
3
star
69

sidecar-demos

Sidecar Demos & Examples
JavaScript
3
star
70

cli

Terminal Client for Wechaty
TypeScript
3
star
71

bot5-rasa-nlu

Rasa NLU for Bot5
Dockerfile
3
star
72

vorpal

CLI for Chatbot - Extensible Commands for ChatOps, Powered by Vorpal.
TypeScript
3
star
73

docker-php-wechaty-getting-started

Getting Started Template for Docker Users
Shell
2
star
74

puppet-discord

Discord Puppet for Wechaty
TypeScript
2
star
75

ducks-contrib

Wechaty Ducks Contrib
JavaScript
2
star
76

token

Wechaty Token-Based Authentication Manager
TypeScript
2
star
77

ngNext-hackthon-2020-Conversational-AI

2
star
78

plugin-freshdesk

Wechaty Freshdesk Plugin helps Freshdesk unifies conversations from WeChat, and helps you resolve issues across channels effortlessly!
TypeScript
2
star
79

chat-drive

Chat Drive is a conversational storage solution that allows you to save files from the WeChat room, and search & access them anytime by talking to our chatbot.
TypeScript
2
star
80

chatbot-1-to-2

the source code of chatbot-1-to-2
JavaScript
1
star
81

qrcode

Online QRCode Image Generator
HTML
1
star
82

php-grpc

PHP Stubs for Chatie GRPC (DO NOT EDIT: Code generated by grpc_php_plugin)
PHP
1
star
83

js.org

Wechaty Official Website for News, Blogs, Contributor Profiles, and Documentations.
1
star
84

rust-wechaty-getting-started

Rust Wechaty Starter Project Template that Works Out-of-the-Box
Makefile
1
star
85

OSSRH-56843

https://issues.sonatype.org/browse/OSSRH-56843
1
star
86

go-grpc

Go Stubs for Chatie GRPC (DO NOT EDIT: Code generated by protoc-gen-go)
1
star
87

python-wechaty-puppet-official-account

Wechaty Puppet for WeChat Official Account
Python
1
star
88

actor

Wechaty Actor Model, Powered by XState, Mailbox, and CQRS
JavaScript
1
star
89

plugin-intercom

Wechaty Intercom Plugin helps you build better customer relationships through WeChat across the customer journey.
TypeScript
1
star
90

wechaty-puppet-sidecar

A Universal Puppet Powered by Sidecar
TypeScript
1
star
91

puppet-gitter

Gitter.im Puppet for Wechaty
TypeScript
1
star
92

OSSRH-56865

https://issues.sonatype.org/browse/OSSRH-56865
1
star