Giter Club home page Giter Club logo

inspirobot-slack's Introduction

inspirobot-slack

Barebones, no dependencies, Node.js server to integrate inspirobot on slack.

Inspiration on the workplace is just a message away.

Build Status Test Coverage Maintainability npm version

Step 1: Deploy

Option 1: Host on Heroku

To deploy your own instance of inspirobot-slack on Heroku:

You can choose the deployment method you prefer, I suggest linking your app to GitHub and syncing upstream to be always up to date.

More on deploying with Heroku here.

Option 2: Use Docker (run everywhere)

Images for all project versions are available.

$ docker pull lorenzocestaro/inspirobot-slack
$ docker run -p 80:<EXTERNAL_PORT> lorenzocestaro/inspirobot-slack

Step 2: Create a Slack app

To add inspirobot to your Slack workspace:

API

Get an inspirobot quote url as a Slack message

Returns json data with the Slack's message.

  • URL: /quote
  • Method: POST`
  • Query parameters: None
  • Data parameters: None
  • Success Response:
    • Code: 200
    • Content:
      {
        "attachments": [
          {
            "image_url": "http://generated.inspirobot.me/095/aXm2323xjU.jpg"
          }
        ],
        "response_type": "in_channel",
        "text": "Get inspired!"
      }
  • Error Response:
    • Code: 500
    • Content: "Error message"

inspirobot-slack's People

Contributors

aaimtt avatar dependabot[bot] avatar lorenzocestaro avatar puemos avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.