sulla icon indicating copy to clipboard operation
sulla copied to clipboard

Injecting api

Open developerdevice opened this issue 4 years ago • 3 comments

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

developerdevice avatar May 05 '20 15:05 developerdevice

Same here

RicardoStoklosa avatar May 16 '20 15:05 RicardoStoklosa

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!'); } }); }

camoreno765 avatar May 18 '20 21:05 camoreno765

the repository is deprecated use

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

joedutra avatar Jun 06 '20 23:06 joedutra