WhatsApp-ChatBot

Chat with a smart bot on WhatsApp

Stars
52

Quite simply, the program can create an uninterrupted conversation between the computer and the selected person. The program starts by asking for the name of the person or group you want to start a conversation with. Pay attention as it is necessary that the name of the person or group is written exactly as in your WhatsApp application. The program will open a Google Chrome window directly on the page. You must log in as you normally would. ** Gosh, NOTHING HAPPENED ** Easy, easy. You simply need to confirm the login with an Enter in the terminal.

Now wait and ... It will start like magic! err... Sorry, Elon Musk. I mean "Like intense study days".

Specifically in this project, I had already trained, so I turned off the training based on the corpus, so I commented:

from chatterbot.trainers import ChatterBotCorpusTrainer
         trainer = ChatterBotCorpusTrainer (bot)
         trainer = ListTrainer (bot)
         trainer.train ("chatterbot.corpus.english")

I let the listening mode on, where you keep new and different answers. Don't worry, I left this part commented so you know what it is. If you are going to activate one, disable the other.

The following tools were used in the construction of the project: