https://github.com/chatrbot/wechaty-puppet-simplepad-demo
Demo for simplepad
https://github.com/chatrbot/wechaty-puppet-simplepad-demo
Last synced: about 1 month ago
JSON representation
Demo for simplepad
- Host: GitHub
- URL: https://github.com/chatrbot/wechaty-puppet-simplepad-demo
- Owner: chatrbot
- License: apache-2.0
- Created: 2021-05-17T09:27:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T08:25:15.000Z (over 4 years ago)
- Last Synced: 2025-03-21T21:29:03.922Z (about 1 year ago)
- Language: TypeScript
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wechaty-puppet-simplepad-demo
## 如何运行
1. 把该项目下载到您指定的某个目录下
```shell
$ git clone https://github.com/chatrbot/wechaty-puppet-simplepad-demo.git
```
2. 安装相应的依赖
```shell
$ cd wechaty-puppet-simplepad-demo
$ npm install
```
3. 执行运行命令,把{YOUR_TOKEN}替换为您自己的token
```shell
$ npx ts-node ./bot.ts -t {YOUR_TOKEN}
```
## 如何调试
如果您没有成功启动(第一次登录终端会显示一个二维码),请提高日志输出等级查看相关信息.
```shell
$ export SIMPLEPAD_LOG='verbose' # 把日志模式变为"verbose",默认为"error"
$ npx ts-node ./bot.ts -t {YOUR_TOKEN} # 尝试重新运行
```
或者在[issues](https://github.com/chatrbot/wechaty-puppet-simplepad-demo/issues)中告诉我们您遇到的情况,让我们来协助您.
## 如何获取token
请阅读项目[Wiki](https://github.com/chatrbot/wechaty-puppet-simplepad/wiki/%E8%8E%B7%E5%BE%97%E4%B8%80%E4%B8%AA%E5%B1%9E%E4%BA%8E%E8%87%AA%E5%B7%B1%E7%9A%84Token)来获取相关信息