the above bot source code can be found[here](https://github.com/wechaty/wechaty/blob/master/example/roger-bot.ts).
This bot just log all the message to the console. Source code at[here](https://github.com/wechaty/wechaty/blob/master/example/roger-bot.ts).
You can find more example from [Wiki](https://github.com/wechaty/wechaty/wiki/Example) and [Example Directory](https://github.com/wechaty/wechaty/blob/master/example/).
# Run [![Docker Pulls](https://img.shields.io/docker/pulls/zixia/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/zixia/wechaty/) [![Docker Stars](https://img.shields.io/docker/stars/zixia/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/zixia/wechaty/) [![Docker Layers](https://images.microbadger.com/badges/image/zixia/wechaty.svg)](https://microbadger.com/#/images/zixia/wechaty)
Let's save the above example bot code to a file named `mybot.ts`, then run the following command:
Run the above example bot code(assume the filenamed is `mybot.ts`):
```shell
$ alias wechaty='docker run \
...
...
@@ -57,34 +62,16 @@ $ alias wechaty='docker run \
$ wechaty mybot.ts
```
Note: [Docker](https://github.com/wechaty/wechaty/wiki/Docker) is required.
Know more about Wechaty [Docker](https://github.com/wechaty/wechaty/wiki/Docker).