Git Product home page Git Product logo

err-backend-cisco-spark's Introduction

This is an errbot (http://errbot.net) backend for Cisco Spark (https://www.ciscospark.com/)

Requirements

Python Requests (https://github.com/kennethreitz/requests)

Python Websocket-client (https://github.com/liris/websocket-client)

Installation

git clone https://github.com/panholt/err-backend-cisco-spark.git

Configuration:

BACKEND = 'Cisco Spark'
BOT_EXTRA_BACKEND_DIR = '/path_to/err-backend-cisco-spark'

to your config.py

Authentication

The BOT_IDENTITY needs to be updated to contain the personId, Bearer Token, and email address of the bot Create bot accounts at https://developer.ciscospark.com/add-bot.html

BOT_IDENTITY = {'token' : ''} # Bearer Token belonging to the bot

The BOT_ADMINS key takes the email address associated with the Cisco Spark Account

BOT_ADMINS = ('[email protected]')    # Email Address of bot admins

Websocket Proxy

The WEBSOCKET_PROXY key is used to setup the Websocket.

##Extra Configuration Options Cisco Spark has a message limit of 7439 characters for the messages API. Errbot should be configured to respect this limit:

MESSAGE_SIZE_LIMIT = 7439

Cisco Spark Webhooks for bots only trigger in 1:1 rooms with the bot, or if the bot is @mentioned in a group room. This backend will automatically register alternate prefixes for the @mention patterns so no additional prefix would be needed. For example "@bot status" in a group room would trigger the webhook and the message payload would read "bot status", and an alternate prefix of "bot" is injected to the Errbot configuration.

Contributing

Pull requests welcome

err-backend-cisco-spark's People

Contributors

panholt avatar sgrimee avatar rlafountain avatar btotharye 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.