# Wechaty [![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![node](https://img.shields.io/node/v/wechaty.svg?maxAge=2592000)](https://nodejs.org/) [![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)](https://github.com/wechaty/wechaty)
## Connecting ChatBots.
...
...
@@ -10,25 +11,26 @@ Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy c
:book: <https://github.com/wechaty/wechaty/wiki>
:whale: <https://hub.docker.com/r/zixia/wechaty>
[![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
the above bot source code can be found[here](https://github.com/wechaty/wechaty/blob/master/example/roger-bot.ts).
This bot can log all message to console. Source code(TypeScript version) 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(`mybot.js` in this example):
```shell
$ alias wechaty='docker run \
-t -i --rm \
-e WECHATY_LOG="$WECHATY_LOG" \
--volume="$(pwd)":/bot \
--name=wechaty \
zixia/wechaty \
'
$ wechaty mybot.ts
$ wechaty mybot.js
```
Note: [Docker](https://github.com/wechaty/wechaty/wiki/Docker) is required.
Know more about Docker for Wechaty at [here](https://github.com/wechaty/wechaty/wiki/Docker).