Skip to content

A Facebook Messenger chatbot based on my classmate's messages

License

Notifications You must be signed in to change notification settings

bemxio/julia-robotczyk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

julia-robotczyk

A Facebook Messenger chatbot based on my classmate's messages. Uses markovify for handling Markov chains and also uses spaCy for NLP.

Running

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.

  1. Clone the repository into a directory of your choice.
  2. Move to the directory with the files in a terminal.
  3. 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>"
}
  1. Gather a dataset of some kind, then make a dataset.json file, containing an array of strings with messages used for the chain.
  2. Run python3 -m pip install -r requirements.txt to install required requirements.
  3. Done! To run the bot, do python3 bot.py.

Contributing

As with all my projects, contributions are highly appreciated!