danielcardeenas / sulla

👩🏻‍🔬 Javascript Whatsapp api library for chatbots
MIT License
1.27k stars 271 forks source link

Injecting api #318

Open developerdevice opened 4 years ago

developerdevice commented 4 years ago

I followed all steps but while i run node index.js it's generate the QR Code, authenticate, inject API and stops there.

If i run npm run start it returns

error TS6053: File 'app.ts' not found.

I've tried to install manually tsc but still not working.

1 2

RicardoStoklosa commented 4 years ago

Same here

camoreno765 commented 4 years ago

You can create a new project,

npm init

Later you can use

npm i sulla

Then you can run your own project and works correctly.

Remember post in your project:

const sulla = require('sulla');

sulla.create().then((client) => start(client));

function start(client) { client.onMessage((message) => { if (message.body === 'Hi') { client.sendText(message.from, '👋 Hello from sulla!'); } }); }

joedutra commented 4 years ago

the repository is deprecated use

Install npm i @s2click/venom https://github.com/s2click/venom