whatsplay / whatsapp-play

Command line software through which you can play with your WhatsApp. It is having different options to play with your WhatsApp like message blast, online tracking, whatsapp chat..
MIT License
403 stars 218 forks source link

Implemented Get Messsage feature in wchat #284

Closed Rits1272 closed 4 years ago

Rits1272 commented 4 years ago

Issue that this pull request solves

Closes: #77

Types of changes

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply

Screenshots

Screenshot (61)

Other information

A user can now receive messages in wchat . The script will be continuously listening to messages from the target. If a message is sent by the target it will be displayed in the terminal. If a user wants to send a message he simply needs to press space bar. After that, the user can send his message.

Initially, @xandao6 suggested using threading. But since asyncio is itself always single-threaded it was no feasible to add a thread. So I came out with this solution.

Rits1272 commented 4 years ago

Please review @xandao6 @rpotter12 @priyansh19. Sorry for sending PR late. It actually took me a while to come out with the solution.

Rits1272 commented 4 years ago

Hello @rpotter12 I have mentioned in the screenshot as well as in the description if you want to send message you first need to hit spacebar. Kindly check :)

xandao-dev commented 4 years ago

add keyboard library to setup.py also.

xandao-dev commented 4 years ago

image this error occurs when I use manual target select. Ex: "wplay -wc"

xandao-dev commented 4 years ago

I got a lot of bugs using 'q' to exit,

rpotter12 commented 4 years ago

Hello @rpotter12 I have mentioned in the screenshot as well as in the description if you want to send message you first need to hit spacebar. Kindly check :)

@Ritz1272 I am still not able to send message from your implementation. Please check your implementation again and test it again.

Rits1272 commented 4 years ago

Please review @rpotter12 @xandao6

rpotter12 commented 4 years ago

Codacy Here is an overview of what got changed by this pull request:


Issues
======
- Added 4

Complexity increasing per file
==============================
- wplay/terminal_chat.py  2

Clones removed
==============
+ wplay/terminal_chat.py  -2

See the complete overview on Codacy

rpotter12 commented 4 years ago

Screenshot from 2020-04-17 17-15-34

My screenshot doesnot match with your screenshot. write your message (Enter key for breakline) ('.' alone to send message) was not found when I ran the software. I think this was your old screenshot. I am still not able to send message