Giter Site home page Giter Site logo

errbot-backend-hangoutschat's Introduction

errbot-backend-hangoutschat

This is a Google Hangouts Chat backend for Errbot.

Current State

This is a work in progress, so probably not really useful for production.

TODOs:

  • 1 to 1 Chat
  • Enable reply on same thread in a room
  • Actually investigate and enable Errbot room functionality
  • Code cleanup

Setup

  1. Install errbot and follow to instructions to setup a config.py.

  2. Clone this repository somewhere convenient.

  3. Install the requirements listed in requirements.txt.

  4. In Google Hangouts Chat, create a bot that will represent ErrBot. If you need help with this step, check out this guide on Hangouts Chat bots based on Google Cloud Pub/Sub.

  5. Edit your ErrBot's config.py. Use the following template for a minimal configuration:

    import logging
    
    BACKEND = 'Hangoutschat'
    
    BOT_EXTRA_BACKEND_DIR = r'<path/to/errbot-backend-hangoutschat>'
    BOT_DATA_DIR = r'<path/to/your/errbot/data/directory>'
    BOT_EXTRA_PLUGIN_DIR = r'<path/to/your/errbot/plugin/directory>'
    
    BOT_LOG_FILE = r'<path/to/your/errbot/logfile.log>'
    BOT_LOG_LEVEL = logging.INFO
    
    BOT_IDENTITY = {  # Fill this with the corresponding values in your bot's `.zuliprc`
       'project_id': '<projectid>',
       'subscription_name': '<subscriptionname>',
       'credentials_path': '<path/to/your/googleserviceaccount.json>'
    }
    
    BOT_ADMINS = ('<[email protected]>',)
    CHATROOM_PRESENCE = ()

    Sections you need to edit are marked with <>.

  6. Start ErrBot.

errbot-backend-hangoutschat's People

Contributors

dr-beat avatar wxlee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nzlosh wxlee

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.