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

Chatbot added successfully #329

Closed SinghHimadri closed 4 years ago

SinghHimadri commented 4 years ago

Issue that this pull request solves

128

Closes: # (issue number)

Proposed changes

Brief description of what is fixed or changed Chatbot added successfully.Initially basic commands like hi, how are you ? , good morning , good night and help. More commands can be added as per requirement.The target needs to send the message stating with"/" and then the chatbot is automatically activated and replies goes itself to the target.

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 Screenshot from 2020-05-08 01-14-39

WhatsApp Image 2020-05-08 at 1 16 29 AM

Other information

Any other information that is important to this pull request I want to add few more features like doing google search or images So I would request to keep this issue open.Initial files have been added successfully.

SinghHimadri commented 4 years ago

@rpotter12 @xandao6 Please review my PR.

rpotter12 commented 4 years ago

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


Complexity increasing per file
==============================
- wplay/chatbot.py  4

See the complete overview on Codacy

SinghHimadri commented 4 years ago

@SinghHimadri What happens if the simple_menu is not having the last_message??

I think you should use try command in this

I have added try except block and bot replies back to target to use /help command. Have a look.

Screenshot from 2020-05-08 16-37-23

WhatsApp Image 2020-05-08 at 4 35 37 PM

xandao-dev commented 4 years ago

Well, it will be our own chatbot. We will need a local database, isn't hard.

SinghHimadri commented 4 years ago

Well, it will be our own chatbot. We will need a local database, it's hard.

Actually @rpotter12 said that it should be able to few commands that I have already added.

rpotter12 commented 4 years ago

Well, it will be our own chatbot. We will need a local database, it's hard.

For now it is acceptable as inial script. For next PR we will aspect the full working.

SinghHimadri commented 4 years ago

@rpotter12 Please add labels. Thank you.