Skip to content

shakhrayv/Facebook-Bot

Repository files navigation

Facebook-Bot

Prerequisites

The Facebook Bot for Facebook Messenger helps you organize, analyze, translate and share any kind of text or messages.
It is deployed on Heroku, featuring continuous GitHub integration, so feel free to use it anytime!
The bot can be accessed from its Facebook Page.

The project was created as part of the home assignment during the Python course at MIPT University.
The code was written by Vladislav Shakhray.
The program is licensed under the terms of GNU Public License.

Requirements

  1. Python 3.4.1 or later

Note: the bot was tested using Python 3.6.0

  1. Python modules: Flask and Beautiful Soup
  2. nltk and nltk data
  3. ngrok

Usage

The following commands are available:

  • text <STRING>  
    Add the <STRING> parameter as a text

  • download <LINK>
    Download text from <LINK>

  • guess
    Mines the text and guesses the words with '?' symbol based on its frequency.

  • translate <LANG>
    Translate current text into <LANG> language

  • languages
    Show available languages

  • save <TITLE>
    Save the current text with the <TITLE> for current user

  • share <TITLE>
    Shared the text with <TITLE> with all users

  • load <TITLE>
    Load the text with title <TITLE> for current user

  • save_all
    Saves all articles for the next session

  • word_count
    Count the number of words

  • sym_count
    Count the number of symbols

  • word_freq <TOP>
    Get <TOP> most frequent words

  • help
    Echo help

Screenshots

Releases

No releases published

Packages

No packages published

Languages