Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.93 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.93 KB

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)