diff --git a/src/index.ts b/src/index.ts index 94e331ec..97087142 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,17 +1,3 @@ -import { Whatsapp } from './api/whatsapp'; -import { create } from './controllers/initializer'; - -// export { Chat, Contact, Message } from './api/model'; -// export { Whatsapp } from './api/whatsapp'; -// export { create } from './controllers/initializer'; - -create().then(client => start(client)); - -async function start(client: Whatsapp) { - client.onMessage(message => { - console.log(message); - if (message.body === 'Hi') { - client.sendText(message.from, '👋 Hello from sulla!'); - } - }); -} +export { Chat, Contact, Message } from './api/model'; +export { Whatsapp } from './api/whatsapp'; +export { create } from './controllers/initializer';