Code Monkey home page Code Monkey logo

gmail-messenger-bot's Introduction

I. Introduction.

This is a Facebook Messenger Bot. It lets people who have Gmail and FB accounts to both receive and reply to their emails in the FB Messenger app, just like they would do it with FB messages.

II. Setup Instructions.

  1. Current files should be located in /var/www/mailbotapp directory

  2. You also need to add /etc/apache2/sites-available/mailbotapp.conf file with following contents: <VirtualHost *:6680> ServerName localhost ServerAlias *.ngrok.io ServerAdmin [email protected] WSGIScriptAlias / /var/www/mailbotapp/mailbotapp.wsgi <Directory /var/www/mailbotapp/mailbotapp/> Require all granted Alias /static /var/www/mailbotapp/mailbotapp/static <Directory /var/www/mailbotapp/mailbotapp/static/> Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined

III. File strutcture and overall architecture.

Most important files:

  1. The "database" folder contains MySQL functions, and "database.py" - a python API for interactions with the DB.
  2. "gbot.py" - for interactions with the Gmail end using Gmail API.
  3. "init.py" - uses Flask to handle the communications with the client side (FB Messenger and the web-form).
  4. "mbot.py" - serves as a middleware between "database.py" and "init.py".

architecture

IV. Credits.

The code was written and developed by me (Olzhas Kadyrakunov), Alisher Tortay and Yekaterina Abileva. Roughly speaking, Kate was responsible for the Gmail end of the system, I was responsible for the "middle part" (interactions with the database), and Alisher was responsible for the FB Messenger end.

gmail-messenger-bot's People

Contributors

olgkad avatar

Stargazers

Alisher Tortay avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.