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
404 stars 217 forks source link

Intermediate of a conversation added successfully. #350

Closed SinghHimadri closed 4 years ago

SinghHimadri commented 4 years ago

Issue that this pull request solves

87

Closes: # (issue number)

87

Proposed changes

Brief description of what is fixed or changed

One person can talk to another person from your WhatsApp! Use command python3 -m -wi -s (sender) -r (receiver) Person A: send message to you You: message received from A and now the user needs to type #_FWD and the last message received from A will be forwarded to Person B Person B: receives message from you I have used function objective to access the last message.

Types of changes

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply

Screenshots

Please attach the screenshots of the changes made in case of change in user interface Terminal Screenshot from 2020-05-25 16-13-28

Messages received from person A

WhatsApp Image 2020-05-22 at 3 54 14 PM

Messaged forwarded to person B

WhatsApp Image 2020-05-22 at 3 54 14 PM (1)

Other information

Any other information that is important to this pull request

SinghHimadri commented 4 years ago

@rpotter12 Please review my PR.

priyansh19 commented 4 years ago

Your changes look's great @SinghHimadri Just make the small changes mentioned by @rpotter12 as well :)

SinghHimadri commented 4 years ago

@SinghHimadri You should add an another option for this feature in which it ask for 2 command line argument for receiver and sender and rest they can chat by having you as a intermediator which using any #_FWD command

I have done the changes you asked. I hope this what it meant :) I have updated the description and screenshots please see.

rpotter12 commented 4 years ago

@SinghHimadri I mean to say to insert a command like: wplay -wi <contact1> <contact2>. This will be more specific. As we are creating an intermediator so it should be from both the side: contact1 can send message to contact2 and vice versa.

SinghHimadri commented 4 years ago

@SinghHimadri I mean to say to insert a command like: wplay -wi <contact1> <contact2>. This will be more specific. As we are creating an intermediator so it should be from both the side: contact1 can send message to contact2 and vice versa.

Initially, I tried to do this wplay -wi <contact1> <contact2> but it has some issues like it takes contact1 as first name and contact2 as the last name and takes it as one target and contact2 as none. And also if some user wants to enter a target with first name and last name that's why I had to add parser for sender and receiver. In the issue, it was mentioned that person A sends the message and it is sent to person B. In vice versa, it'll be difficult to maintain as at a time one chat is open i.e. one target (and also I think it's a different issue). I have completed what was mentioned in the issue.

rpotter12 commented 4 years ago

Initially, I tried to do this wplay -wi <contact1> <contact2> but it has some issues like it takes contact1 as first name and contact2 as the last name and takes it as one target and contact2 as none. And also if some user wants to enter a target with first name and last name that's why I had to add parser for sender and receiver. In the issue, it was mentioned that person A sends the message and it is sent to person B. In vice versa, it'll be difficult to maintain as at a time one chat is open i.e. one target (and also I think it's a different issue). I have completed what was mentioned in the issue.

Did you have the command like this: wplay -wi "<contact1>" "<contact2>". by using"___"` it will take 2 arguments separately.

SinghHimadri commented 4 years ago

Initially, I tried to do this wplay -wi <contact1> <contact2> but it has some issues like it takes contact1 as first name and contact2 as the last name and takes it as one target and contact2 as none. And also if some user wants to enter a target with first name and last name that's why I had to add parser for sender and receiver. In the issue, it was mentioned that person A sends the message and it is sent to person B. In vice versa, it'll be difficult to maintain as at a time one chat is open i.e. one target (and also I think it's a different issue). I have completed what was mentioned in the issue.

Did you have the command like this: wplay -wi "<contact1>" "<contact2>". by using"___"` it will take 2 arguments separately.

Can you please guide me I'm not able to implement this.

rpotter12 commented 4 years ago

@SinghHimadri https://www.tutorialspoint.com/python/python_command_line_arguments.htm Maybe this can help to you

SinghHimadri commented 4 years ago

@rpotter12 I have added the command line arguments not the user can input the command : ' python3 -m wplay -wi "contact 1" "contacted 2".Also I have removed some error in about_change file and EOL in save chat.

SinghHimadri commented 4 years ago

@rpotter12 I have resolved all conflicts and done the changes you asked for.

rpotter12 commented 4 years ago

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


Complexity increasing per file
==============================
- wplay/utils/io.py  1
- wplay/terminal_chat.py  1
- wplay/__main__.py  1
- wplay/chat_intermediator.py  1

Clones added
============
- wplay/terminal_chat.py  1
- wplay/save_chat.py  3

See the complete overview on Codacy

SinghHimadri commented 4 years ago

@SinghHimadri Please delete all the commented portion from save_chat.py

@rpotter12 changes Done.