Automate your Facebook Message Groups
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
config.json
megbot.py
megbotex.py
requirements.txt

README.md

MegBot

Facebook messenger groups have the ability to reach 100+ unread messages pretty quickly. At that point, you have to make a decision: miss out on the messages and risk missing an awesome discussion, or read every single line and risk oportunity cost. Now you don't have to make that decision! MegBot allows you to automate your Facebook message group summaries.

Details

MegBot itself is an object that allows you to interface with Facebook messenger through your own account.

The example, megbotex.py, summarizes the past 50 messages the group said. It does this either every 50 messages, or when someone in the chat group calls it with "@megbot". It also draws attention to whoever you want by responding to your message of "@"xyz with a capitalized version of the word attached to the @.

Installation

  1. Install PhantomJS. Note: It is available via
brew install phantomjs

and

port install phantomjs
  1. Create a python env if you want, or use your own and then
pip install -r requirements.txt

Usage

To use the example:

python megbotex.py [facebook email] [facebook password] [message ID]

The message ID is located here:

The information in your chat is stored in an array of strings, and therefore does not persist in this example. Please be aware of privacy concerns if you decide to change this feature.

Contributions

Feel free to send a pull request for added functionality to MegBot or any use cases you want to share.

Disclaimer

PM's are private. Therefore, you should have full consent of everyone in your group to opporate MegBot. Please be considerate of others.

Maintainer

Megan Ruthven (@maruthven)