Git Product home page Git Product logo

gchatautorespond's Introduction

Autoresponder for Google Chat and Hangouts

Autoresponder is a Django project that hosts static Google Chat/Hangouts bots.

I originally created it to avoid unnoticed messages to my forwarding accounts, but it's also found use with employees and small business owners.

The hosted version is available at https://gchat.simon.codes.

self-hosting

Autoresponder can also be self-hosted.

First, install the dependencies and connect your account:

$ pip install -r requirements.txt
$ python standalone_bot.py auth

You only need to run this once. The OAuth credentials will be written to your current working directory.

Then, start the bot:

$ python standalone_bot.py run [email protected] 'my autoresponse'

To further customize your bot, modify the constructor params for AutoRespondBot in standalone_bot.py

Email notifications are not currently supported when self-hosting (#7).

project layout

  • gchatautorespond/apps/autorespond: main django app
  • gchatautorespond/lib/chatworker: manages chat bots
  • test: tests
  • ops: ansible config (3rd party roles vendorized)
  • secrets: prod secrets (managed with transcypt)
  • assets: served with dj-static (not nginx because I'm lazy)

development

To create a new dev environment:

  • create a new virtualenv
  • pip install -r test_requirements.txt
  • DJANGO_SETTINGS_MODULE=gchatautorespond.settings_dev python manage.py migrate

Then:

  • run locally: DJANGO_SETTINGS_MODULE=gchatautorespond.settings_dev python manage.py supervisor
  • run tests: DJANGO_SETTINGS_MODULE=gchatautorespond.settings_dev ./manage.py test test/

gchatautorespond's People

Contributors

simon-weber avatar

Watchers

Eric Fry 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.