@@ -49,7 +49,7 @@ Scan now, because other Wechaty developers want to talk with you too! (secret co
...
@@ -49,7 +49,7 @@ Scan now, because other Wechaty developers want to talk with you too! (secret co
### :book: Resource
### :book: Resource
Wechaty already held lots of talk and got a lot of blogs in the past 4 years, here is all of the wechaty resouces:
Wechaty already held lots of talk and got a lot of blogs in the past 4 years, here is all of the wechaty resources:
- :video_camera: [Youtube Playlist: Watch all of talk video related with Wechaty](https://www.youtube.com/playlist?list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh)
- :video_camera: [Youtube Playlist: Watch all of talk video related with Wechaty](https://www.youtube.com/playlist?list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh)
@@ -92,7 +92,7 @@ We have a Wechaty starter repository for beginners with the simplest setting. It
...
@@ -92,7 +92,7 @@ We have a Wechaty starter repository for beginners with the simplest setting. It
If you are new to Wechaty and want to try it the first time, we'd like to strong recommend you starting from this repository, and using it as your starter template for your project.
If you are new to Wechaty and want to try it the first time, we'd like to strong recommend you starting from this repository, and using it as your starter template for your project.
Otherwise, please saved the above _The World's Shortest ChatBot Code: 6 lines of JavaScript_ example to a file named `mybot.js` before you can use either NPM or Docker to run it.
Otherwise, please saved the above _The World's Shortest ChatBot Code: 6 lines of JavaScript_ example to a file named `bot.js` before you can use either NPM or Docker to run it.
### 1. Npm
### 1. Npm
...
@@ -106,9 +106,9 @@ Otherwise, please saved the above _The World's Shortest ChatBot Code: 6 lines of
...
@@ -106,9 +106,9 @@ Otherwise, please saved the above _The World's Shortest ChatBot Code: 6 lines of
npm init
npm init
npm install wechaty
npm install wechaty
# create your first mybot.js file, you can copy/paste from the above "The World's Shortest ChatBot Code: 6 lines of JavaScript"
# create your first bot.js file, you can copy/paste from the above "The World's Shortest ChatBot Code: 6 lines of JavaScript"
# then:
# then:
node mybot.js
node bot.js
```
```
### 2. Docker
### 2. Docker
...
@@ -124,14 +124,14 @@ node mybot.js
...
@@ -124,14 +124,14 @@ node mybot.js
```shell
```shell
# for JavaScript
# for JavaScript
docker run -ti--rm--volume="$(pwd)":/bot wechaty/wechaty mybot.js
docker run -ti--rm--volume="$(pwd)":/bot wechaty/wechaty bot.js
```
```
2.2. Run TypeScript
2.2. Run TypeScript
```shell
```shell
# for TypeScript
# for TypeScript
docker run -ti--rm--volume="$(pwd)":/bot wechaty/wechaty mybot.ts
docker run -ti--rm--volume="$(pwd)":/bot wechaty/wechaty bot.ts
```
```
> Learn more about Wechaty Docker at [Wiki:Docker](https://github.com/Wechaty/wechaty/wiki/Docker).
> Learn more about Wechaty Docker at [Wiki:Docker](https://github.com/Wechaty/wechaty/wiki/Docker).