Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions docusaurus/docs/howto/starter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
title: 'Get started'
---

This will be a step by step guide on how to run the bot on most popular messaging apps, Whatsapp and Wechat:

:::tip

If you do not wish to run the bot locally, you can also use use Gitpod or Google Cloud Shell. The steps can be found [here](../getting-started/quick-start)

:::

## Requirements

1. Node.js v12+
2. Build tools

## Installation

- ### Download Node.js

You can downlad the latest version from [here](https://nodejs.org/en/download/)

- ### Build Tools

On your terminal run this command:

```bash
sudo apt install build-essential
```

## Running Locally

This guide will go through the steps to generate QR code for the bot to test it with Whatsaap and Wechat.
<ol>
<li> Clone the <a href ="https://github.com/wechaty/wechaty-getting-started">Wechaty Getting Started</a> repository by following the commands below, and navigate to the directory: </li>

```bash
git clone https://github.com/wechaty/wechaty-getting-started
cd wechaty-getting-started
```

<li> Install the`npm dependencies` by running this command: </li>

```bash
make install
```

<li> Set-up the the environment vaiables: </li>

```bash
export WECHATY_LOG=verbose
```

<li>Setup the relevant puppet provider for the messaging app with which you want to test the bot: </li>
<ul>
<li> <b>Wechat</b> </li>
</ul>

```bash
export WECHATY_PUPPET=wechaty-puppet-wechat
```

<ul>
<li> <b>Whatsapp</b> </li>

</ul>

```bash
export WECHATY_PUPPET=wechaty-puppet-whatsapp
```

<li> Start the ding dong bot by using the command: </li>

```bash
npm start
```

<li> Scan the code displayed on the terminal using Wechat/ Whatsapp Web </li>
<img src ="docusaurus/static/img/docs/howto/starter/qr-code.png"></img>
The Ding Dong bot is now set up and can read recieved messages. Ding Dong bot is the simplest wechaty bot that automatically replies with a `dong` message when a `ding` message is recieved.
</ol>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechaty.js.org",
"version": "0.8.295",
"version": "0.8.298",
"description": "Wechaty Official Website for News, Blogs, Contributor Profiles, and Documentations",
"private": true,
"directories": {
Expand Down