https://github.com/bemxio/julia-robotczyk
A Facebook Messenger chatbot based on my classmate's messages
https://github.com/bemxio/julia-robotczyk
facebook markov-chain markovify messenger nlp python spacy
Last synced: 13 days ago
JSON representation
A Facebook Messenger chatbot based on my classmate's messages
- Host: GitHub
- URL: https://github.com/bemxio/julia-robotczyk
- Owner: bemxio
- License: mit
- Created: 2022-10-02T15:01:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-08T16:00:41.000Z (3 months ago)
- Last Synced: 2026-03-08T19:55:45.213Z (3 months ago)
- Topics: facebook, markov-chain, markovify, messenger, nlp, python, spacy
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# julia-robotczyk
A Facebook Messenger chatbot based on my classmate's messages.
Uses [markovify](https://github.com/jsvine/markovify) for handling Markov chains and also uses [spaCy](https://github.com/explosion/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](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/) 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:
```json
{
"email": "",
"password": ""
}
```
4. Gather a dataset of some kind, then make a `dataset.json` file, containing an array of strings with messages used for the chain.
5. Run `python3 -m pip install -r requirements.txt` to install required requirements.
6. Done! To run the bot, do `python3 bot.py`.
## Contributing
As with all my projects, contributions are highly appreciated!