Giter Site home page Giter Site logo

lama-reporter's Introduction

Project Lama Reporter

##Intro:

This bot forwards messages from e-mail to VK dialog.

##How to run:

Firstly, you should place file settings.py to the project root with the following defiles:

  • VK_LOGIN - Your VK bot login
  • VK_PASSWORD - Your VK bot password
  • VK_APP_ID - Your VK application id
  • VK_CHAT_ID - Your VK chat id
  • GMAIL_CLIENT_SECRET_JSON - Path to file with GMail secret json. See below section with explanations
  • GMAIL_STORAGE - Path to file with GMail storage information
  • LOG_FILENAME - Path to file with logs

###GMAIL_CLIENT_SECRET_JSON

To get started using Gmail API, you need to first create or select a project in the Google Developers Console and enable the API. Using this link guides you through the process and activates the Gmail API automatically.

Alternatively, you can activate the Gmail API yourself in the Developers Console by doing the following:

  1. Go to the Google Developers Console.
  2. Select a project, or create a new one.
  3. In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Gmail API.
  4. In the sidebar on the left, select Credentials.

In either case, you end up on the Credentials page and can create your project's credentials from here.

If you haven't done so already, create your OAuth 2.0 credentials by clicking Create new Client ID under the OAuth heading. Next, look for your application's client ID and client secret in the relevant table. You may also create and edit redirect URIs from this page.

Click Download JSON to save the client secrets file, then place this file at a location where your app can easily access it.

via Google API Documentation

##Python version

Python 2.7 is required. Python 3.x is not supported

##Third Party Libraries and Dependencies

Third party libraries are listed in the requirements.txt and could be installed via pip:

$ pip install -r requirements.txt
$ # Or run as module
$ python -m pip install -r requirements.txt

The following links are historical, you should firstly try to install the requirements.txt dependencies.

In order to run bot you should install the following libraries

lama-reporter's People

Contributors

soon avatar

Watchers

James Cloos 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.