This is a repository for the GPT Facebook Chatbot. It was built during the developer's weekend and is intended to provide users with an interactive chatbot experience on Facebook. The bot can be installed and deployed on Fly.io, and there are instructions for setting it up and running it locally. For more support, please contact the developer at https://facebook.com/npmrunstart.
| /help command | /gpt command |
|---|---|
![]() |
![]() |
First, clone the repository:
git clone https://github.com/tinwritescode/weekend-facebook-chatbot
Deploy on Fly.io
fly launchIn the config folder, you need a file named cookie.json that contains the Facebook cookie. To obtain the cookie.json file from Facebook, install J2Team Cookie, then navigate to the extension and press the export button.
After exporting the file, move it to the /config folder and replace the existing cookie.json file.
The contents of the file should be something like this.
{
"url": "<https://www.facebook.com>",
"cookies": [
// many stuffs
]
}
To install the necessary packages for the IDO specs GPT Facebook Chatbot, run the following command:
npm installTo develop the chatbot with autoreload, run:
npm run devAnd to start the chatbot, run:
npm run startThese commands are essential for running the chatbot locally. Make sure to include them in your workflow.
Pull requests are welcome. If you plan to make major changes, please open an issue first and discuss what you would like to change.
Make sure to update the tests as appropriate.

