This is unofficial Whatsapp Web API - Use at your own risk!!!
Install the dependencies and devDependencies and start the server.
#Cloning This Repositories
$ git clone https://github.com/rynkings/wabotjs
# Open Directory
$ cd wabotjs
# Install Module
$ npm i
# Running Program
$ npm start
*/Or
# Autorestart when save file
$ npm autorestart
async function listen(client, message){
console.log(message);
console.log(message.pattern[1])
client.sendMessage(message.to, 'Hi too');
}
textListener(listen, false, true, /^.hi(?: |$)(.*)/, false, false);
To make it easier if there is an Error Change in data/setting.json
by using your number or with the ID Groups:
// The setting.json example
{
"logs": false,
"logs_id": "Put_YOUR_NUMBER_OR_GROUP_ID",
"mode": "public",
"owners": []
}