1. check node version, the most recent version is recommended. Node 14.15.4 LTS
has been well tested. Or you may encounter bugs issued by Node, e.g. #13
node --version // >= v14.0.0
After cloning the repo, change current directory to repo's root folder:
RUN: yarn install
or npm install
Contact admin to apply PadLocal token.
In your terminal, do:
export WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_xxx
before next step.
RUN: yarn run demo
or npm run demo
$ yarn run demo
$ ./node_modules/.bin/ts-node main.ts
[Fri Oct 09 2020 00:00:00] [LOG] TestBot started.
[Fri Oct 09 2020 00:00:00] [LOG] TestBot Contact<${YOUR ACCOUNT NICK NAME}> login
[Fri Oct 09 2020 00:00:00] [LOG] TestBot ready.
# bot is ready, all setup work has been done.
# when new message comes, following logs will be printed.
[Fri Oct 09 2020 00:00:01] [LOG] TestBot on message: Message#Text ...