yausername / whatsapp-cli

MIT License
32 stars 7 forks source link

CPU usage too high. #8

Closed kimpla7 closed 5 years ago

kimpla7 commented 5 years ago

As the title says, whatsapp-cli makes use of almost 25% of my CPU usage on average. I think that's way too much taking into consideration that I'm using an i5-8220. Is there a way to reduce this?

Thank you.

yausername commented 5 years ago

Hey, Thanks for reporting the issue. I have fixed it. Install the newer version using this command. sudo pip install whatsapp-cli --upgrade Thanks

kimpla7 commented 5 years ago

Hello,

Now that problem is solved, but I cannot send any messages using the /chat command, whilst I could do it yesterday. Is there anything you can do?

El lun., 4 mar. 2019 a las 23:02, yausername (notifications@github.com) escribió:

Hey, Thanks for reporting the issue. I have fixed it. Install the newer version using this command. sudo pip install whatsapp-cli --upgrade Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/8#issuecomment-469439543, or mute the thread https://github.com/notifications/unsubscribe-auth/Aoyc4BKZJbTry46gmlkLDp5xpaRhBQRiks5vTZftgaJpZM4bc9vX .

yausername commented 5 years ago

Hi, This thing is very limited in what it can do

So /chat should work after the person sends you a text and you get the notification. Hope it helps. Thanks

kimpla7 commented 5 years ago

I know how it works, I really liked it back yesterday when I tried it for the first time. I'm trying to chat with a person who has just sent me a notification seconds before, but it's not working as before the update.

yausername commented 5 years ago

are you able to receive messages? does the person show up when you call the /users command

kimpla7 commented 5 years ago

Yes, I am able to receive messages and also the person appears in the /users command. I can also access to the chat window but when I type and press enter, nothing happens.

yausername commented 5 years ago

that's strange. maybe wait a couple of seconds after opening and try to send message then. or close and open again.

kimpla7 commented 5 years ago

I tried that already and it isn't working. I also tried to generate a new token but cannot send messages. It could be something related with the update, because it was working just fine before.

yausername commented 5 years ago

try this command whatsapp-cli --token yourtoken send -u "Name" -m "message"

kimpla7 commented 5 years ago

Nothing :/

yausername commented 5 years ago

what error does it print?

yausername commented 5 years ago

try this command whatsapp-cli --token yourtoken send -u "Name" -m "message"

this is a separate command

kimpla7 commented 5 years ago

What do you mean separate?

yausername commented 5 years ago

What do you mean separate?

not to be used in the visual mode but on the command line. if that was not obvious

yausername commented 5 years ago

I tried that already and it isn't working. I also tried to generate a new token but cannot send messages. It could be something related with the update, because it was working just fine before.

It should work with the newer token then. I don't think it is related to the update because it works for me. you can downgrade and check though.

kimpla7 commented 5 years ago

Ok, as you say. It's sad it won't work for me.

kimpla7 commented 5 years ago

Can it be something related with Pushbullet? It says that I've reached the free messages for this month. Okay, now I see it's because of this:

Send messages (SMS, WhatsApp, Kik, etc) 100/month

Thanks for your time.

yausername commented 5 years ago

Ok. I'm glad you found out the issue. Cheers!