Repository navigation
Running locally (Ding Dong bot) - #888
Conversation
|
Tag: #891 |
|
Is the PR ready to be reviewd? You requested Review, but I believe you are still pushing new commits to the PR |
|
Now its done. You can review it now.
…On Tue, 25 May 2021, 7:31 pm Rohitesh Kumar Jain, ***@***.***> wrote:
Is the PR ready to be reviewd? You requested Review, but I believe you are
still pushing new commits to the PR
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/wechaty/wechaty.js.org/pull/888#issuecomment-847896408>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANUJ3INXA6AXGKQZ35NKI3LTPOUUZANCNFSM45L44ORQ>
.
|
| "dotenv": "^8.2.0", | ||
| "qrcode-terminal": "^0.12.0", | ||
| "wechaty": "^0.60.3", | ||
| } |
There was a problem hiding this comment.
We should change adding dependencies way from adding to package.json to using npm install
maybe change something like this:
npm install wechatyIf you want to show qr-code at the terminal, you can add this:
npm install qrcode- terminalWe may not use dotenv here because this is not the requisite package when using wechaty
| "wechaty-puppet-wechat4u": "^0.18", | ||
| "wechaty-puppet-whatsapp": "0.2.3" | ||
| } | ||
| ``` |
There was a problem hiding this comment.
We should change adding dependencies way from adding to package.json to using npm install
may change something like this:
You can install wechaty-puppet as you like when using wechaty:
- If young want to use whatsapp,you can install wechaty-puppet-whatsapp
npm install wechaty-puppet-whatsapp- If you want to use wechat, you can install wechaty-puppet-wechat
npm install wechaty-puppet-wechat- If you want to use wecom, you can install wechaty-puppet-wxwork
npm install wechaty-puppet-wxworkYou can find more puppet information here: https://wechaty.js.org/docs/puppet-providers/
| "wechaty-puppet-mock": "^0.28.2", | ||
| "wechaty-puppet-wechat": "^0.28", | ||
| "wechaty-puppet-wechat4u": "^0.18", | ||
| "wechaty-puppet-whatsapp": "0.2.3" |
There was a problem hiding this comment.
We can delete this pakcage.json part, since it is not necessary for users.
|
|
||
| ```sh | ||
| npm install | ||
| ``` |
There was a problem hiding this comment.
Reomve npm install here, because we already use npm install XXX before
|
|
||
| ### 6. Defining scripts | ||
|
|
||
| You have to define the script for running the bot. Add the following to your `package.json` file: |
There was a problem hiding this comment.
This is an enhancement feature, I'd rather to remove this from the tutorial. If you strongly want to add it here, maybe you can tell the reader about this.
We can change this something like this:
If you want to run it more conveniently, you can add some script in package.json.
|
I think you can refer to this PR when telling people how to use wechaty: https://github.com/wechaty/wechaty.js.org/pull/905 |
lijiarui
left a comment
There was a problem hiding this comment.
Good job!
One more tips to fix.
|
|
||
| ```sh | ||
| npm install -g npx | ||
| ``` |
There was a problem hiding this comment.
Please remove npm install npx here, because node has npx itself.
@sbis04 you can click here: https://codesandbox.io/s/github/wechaty/wechaty-getting-started/tree/master/examples/third-parties/codesandbox?hidenavigation=1&module=%2Fding-dong-bot.ts&theme=dark and will found error as well. Pls help @shwetalsoni fix this. |
…rg into running-locally
|
@lijiarui I have applied the above requested change. |
|
Good job, I think you can file a new issue about the sandbox problem, and I will approve this PR. |
Do you mean to create an issue under |

Uh oh!
There was an error while loading. Please reload this page.