TeamFreeHugs / Whatsapp-Chatbot

Whatsapp Chatbot that gets past CSP!
20 stars 8 forks source link

Help to use #2

Open andrecordeiro opened 8 years ago

andrecordeiro commented 8 years ago

@eyeballcode Hello, I do not quite understand how to use this chatbot. I started the web server and it is running on port 3000. I opened the url https://web.whatsapp.com. And now what do I do?

This is my console: capturar

eyeballcode commented 8 years ago

So on whatsapp web, you have a QR code: screenshot from 2016-03-21 23 09 15

Open the QR code scanner on the phone and scan it: help_chatbot_ws

Give it a moment, it should change the page in the browser. Click on a chat and right click, click inspect element then go to the JS console

I've found that right clicking on the chat info bar works.

Then paste in the code from WhatsappUtils.js inside. If it blocks a popup, allow it, then run the code again.

And you can play with this starter code:

window.whatsapp = initWhatsappAPI();

whatsapp.attachHandler({
    newMessage: function (text) {
        console.log("NEW MESSAGE: " + text);
    }
});
whatsapp.startWatching();

Also, note that I am working on a pure nodejs way of doing this. No more messy CORS getarounds.

eyeballcode commented 8 years ago

What is the problem with the chatbot?

eyeballcode commented 8 years ago

Necklace? What necklace?

eyeballcode commented 8 years ago

If the server is started then load this link to see the file

eyeballcode commented 8 years ago

Yep. You could try a MutationObserver on the chat list, but right now I can't really get it to work

sanjayradadiya commented 8 years ago

i am starting to implement MutationObserver but now a day i can't got success.

eyeballcode commented 8 years ago

I might be able to get a basic version of the pure nodejs api soon, and it should have multi chats at once.

sanjayradadiya commented 8 years ago

can you give me basic idea on which you are working on

eyeballcode commented 8 years ago

It is a new version of the API that uses jsdom to do all the magic instead of a browser. This lets it do all the DOM magic inside nodejs, without a browser. This also allows me to upload files (hopefully) and be easier to setup.

sanjayradadiya commented 8 years ago

you mean this is also multi user chat enabled logic using node.js

eyeballcode commented 8 years ago

Not yet, but when I can get the nodejs version to work

eyeballcode commented 8 years ago

I don't, but we could try gitter?

Get an account on gitter, then go here

eyeballcode commented 8 years ago

Signup first. Then I can add you to the room

sanjayradadiya commented 8 years ago

dear all can we have any updates regarding dom majic inside node.js

sanjayradadiya commented 8 years ago

no sir i have't any update i just asking Que that any update occurred in this script or not

eyeballcode commented 8 years ago

Currently, I don't have an update as I can't get jsdom to work as I want it to.

johnnogent commented 7 years ago

Hello eyeballcode,

I have followed the readme, paste both files in JS console, and nothing happens apart another browser fully blank. What should be the outcome?

Thanks

eyeballcode commented 7 years ago

Hi, this repository is outdated, please use https://github.com/TeamFreeHugs/WhatsApp-Chatbot-2.0 instead. Thanks

On 18 Jun 2017 4:24 a.m., "Jean Bouez" notifications@github.com wrote:

Hello eyeballcode,

I have followed the readme, paste both files in JS console, and nothing happens apart another browser fully blank. What should be the outcome?

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TeamFreeHugs/Whatsapp-Chatbot/issues/2#issuecomment-309230710, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcWoxAEBbsoVMj0baMqVB9x3ZXndPrbks5sFBUsgaJpZM4H1JBp .