A Facebook Messenger chatbot based on my classmate's messages. Uses markovify for handling Markov chains and also uses spaCy for NLP.
Make sure you're running Python 3.7+ before doing any steps.
If you are planning to run this bot on a Raspberry Pi, the host OS must be 64-bit for spaCy support. Check this link for more details.
- Clone the repository into a directory of your choice.
- Move to the directory with the files in a terminal.
- Make a new file called
credentials.json
, and use the template below to fill it up:
{
"email": "<FACEBOOK_ACCOUNT_EMAIL_HERE>",
"password": "<FACEBOOK_ACCOUNT_PASSWORD_HERE>"
}
- Gather a dataset of some kind, then make a
dataset.json
file, containing an array of strings with messages used for the chain. - Run
python3 -m pip install -r requirements.txt
to install required requirements. - Done! To run the bot, do
python3 bot.py
.
As with all my projects, contributions are highly appreciated!