Giter VIP home page Giter VIP logo

mason-slack-now's Introduction

Mason Slash Command for Slack

Interface with the Mason Platform directly in Slack with /mason.

Built on Now.

๐Ÿš€

Prerequisites

Setup

Generate a Mason API key

  1. On the Mason Platform Settngs page, create a new API key with the following options:

    • Name: mason-slack
    • Scopes: fleet-read
  2. Securely store the generated key.

  3. Then, using the Now CLI, run the following command from your terminal:

    • $ now secrets add mason-api-key <YOUR_API_KEY>

Create a Slack app

  1. Create an app at https://api.slack.com/apps.

  2. On the Basic Information page, copy the Signing Secret. Then, using the Now CLI, run the following command from your terminal:

    • $ now secrets add slack-signing-secret <YOUR_SIGNING_SECRET>

Deploy

  1. Clone this repository.
  2. From the root directory of the cloned repository, use the Now CLI and run the following command from your terminal:
    • $ now
  3. After the deployment completes, copy the URL to your deployed project. This will be needed in Add the /mason Slack Slash Command below.
    • Optionally, visit the project page in ZEIT and copy the 'ALIAS' URL

Add the /mason Slack Slash Command

  1. In Settings for your Slack app click on Slash Commands.
  2. Click the 'Create New Command' button and fill in the following:
    • Command: /mason
    • Request URL: <YOUR_ZEIT_PROJECT_URL> (See Deploy above)
    • Short description: Interface with the Mason Platform
    • Usage hint: help
  3. Save your new Slash Command

Install your app

  1. In Settings for your Slack app click on Install App and follow the prompts:
    • Click Install App to Workspace
    • Click Install

Usage

Send /mason in Slack to use your new Slash Command.

Features

  • Get device information for a given device name

Reference

mason-slack-now's People

Contributors

trevorhalvorson avatar

Watchers

 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.