Closed SinghHimadri closed 4 years ago
@rpotter12 Please review my PR.
Your changes look's great @SinghHimadri Just make the small changes mentioned by @rpotter12 as well :)
@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.
@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 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.
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.
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.
@SinghHimadri https://www.tutorialspoint.com/python/python_command_line_arguments.htm Maybe this can help to you
@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.
@rpotter12 I have resolved all conflicts and done the changes you asked for.
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 Please delete all the commented portion from save_chat.py
@rpotter12 changes Done.
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 applyChecklist
Put an
x
in the boxes that applyScreenshots
Please attach the screenshots of the changes made in case of change in user interface Terminal
Messages received from person A
Messaged forwarded to person B
Other information
Any other information that is important to this pull request