Skip to main content

Running on Gitpod

If you are total beginner to wechaty this tutorial will guide you how to run the Ding Dong bot from the Wechaty Getting Started GitHub repository directly on the browser using Gitpod.

Gitpod is an online and open source platform for automated and ready-to-code development environments.

Follow the steps below to get started:

  1. Click the button below to access a complete setup of Wechaty Getting Started ding-dong BOT project on gitpod.


  2. If you have never used gitpod before, you will be required to login using your gitHub account.

    sign in

  3. After logging in with your github account, you have to create a workspace by clicking on New Workspace button.


  4. As the workspace loads, within no time it runs the ding dong bot.


  5. Scan the generated QR code using Wechat.

  6. For scanning the QR code with another puppet, quit the running code in terminal using ctrl C and run the command given below for using whatsapp.

    npm run start:whatsapp:web
  7. Scan the generated QR code using WhatsApp web and test it with whatsapp. If it recieves a message ding, it replies with a dong as shown below.


  8. The code for the ding-dong-bot is given inside examples/ding-dong-bot.ts. You can play more with the bot by editting onMessage function.