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:
Click the button below to access a complete setup of Wechaty Getting Started ding-dong BOT project on gitpod.
If you have never used gitpod before, you will be required to login using your gitHub account.
After logging in with your github account, you have to create a workspace by clicking on New Workspace button.
As the workspace loads, within no time it runs the ding dong bot.
Scan the generated QR code using Wechat.
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
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.
The code for the ding-dong-bot is given inside
examples/ding-dong-bot.ts
. You can play more with the bot by edittingonMessage
function.