Quick Start with Demo

0. Apply Token

You need PadLocal token to run this demo. How to Apply Token

1. Prepare Node Environment

Install Node, 16 LTS version is recommended.

$ node --version // >= v16.0.0

2. Clone the wechaty-puppet-padlocal-demo project.

$ git clone git@github.com:padlocal/wechaty-puppet-padlocal-demo.git

Then install Node dependencies.

$ cd wechaty-puppet-padlocal-demo
$ npm install

3. Set you PadLocal Token in main.ts

const puppet = new PuppetPadlocal({
token: ">>>> YOUR_PADLOCAL_TOKEN <<<<"
})

[Optional] Uncomment following code to turn on debug log

/****************************************
* 去掉注释,可以完全打开调试日志
****************************************/
// log.level("silly");

4. Run the demo

$ npm run demo

carbon