Open krconnect opened 7 years ago
Ohhh.. Before sending messages you need to run setupBot();
in the console
Seems like the send button isn't being pressed. I'll quickly fix this
https://github.com/TeamFreeHugs/WhatsApp-Chatbot-2.0/commit/c55aa3b7053c6283c1248f1b95733be8f31e5855 Fixed! Run git pull
to update
@eyeballcode Hello, I made the change in the file lib / page / WhatsAppAPIPage.js, I made the call to setupBot (); And even then nothing happened, see the attachment. tks
That's quite strange... I'll take a look into it, but I feel it may be windows related
@eyeballcode Well, it's very strange, I'm thinking of using the old form, not version 2.0. Do you find it viable? I need to actually get what the person typed and write to the database.
You could use the old version, but you would need to copy and paste code repeatedly to test. Also, you do not have a direct connection to a database. Here, you can use require('mongo')
straight from anywhere, even the dev console. Also, I've update to code in a new branch, could you git pull
and then git checkout patch-loading-users
to check it out?
@eyeballcode Ah yes, this version got much better, easier to use and integration with mongo is fantastic. What do you need me to do?
Could you try the patch on the new branch and let me know if it works?
Do you want me to do what? sorry did not understand. ;(
I already updated my files and tested, it did not work.
Hmmm... Well until I get a windows machine, I can't test this. Maybe you could try to play with /lib/whatsapp-injector.js
to get it to work, then submit a pull request
Also, can you run git rev-parse HEAD
and ensure it is 6849a074e2d2d452a3f399b7d77d9be34d3ea002
and not c55aa3b7053c6283c1248f1b95733be8f31e5855
@eyeballcode I already tried calling this script directly and it also did not work. look that:
@eyeballcode I deleted everything and downloaded the file again: https://github.com/TeamFreeHugs/WhatsApp-Chatbot-2.0/archive/master.zip And yet it did not work out.
Actually, you should use git clone
instead. Maybe that's why it didn't work.
@eyeballcode I'll do it that way then and I'll let you know, I did not think it could influence.
@eyeballcode I found the error my friend. Is getting the wrong version. How do I get the correct version?
@eyeballcode
I downloaded the version you said and it did not work. I tested it on two computers. https://github.com/TeamFreeHugs/WhatsApp-Chatbot-2.0/blob/6849a074e2d2d452a3f399b7d77d9be34d3ea002/
@eyeballcode No console.log is displayed!
Here console.log is context dependent. For printing you should process.stdout.write
Also, to switch to the new branch use git checkout patch-loading-users
Dont work
@monteirosk this is raised due to whatsapp web version is updated so dom related configuration is old in this repo that need to fixed soon.
@eyeballcode
When sending a message, there is no return. how should I proceed?