GithubHelp home page GithubHelp logo

slack-status's Introduction

Slack Status

A simple Slack app that updates your Slack status to the game you're currently playing on Steam, the song you're listening to on Spotify, or a recent reaction you got to one of your messages on Slack.

Firebase configuration

  1. Create a new Firebase project
  2. Upgrade to Blaze plan
  3. Set following config variables (firebase functions:config:set service.key="value"):
{
  "steam": {
    "api_key": "xxxxxx"
  },
  "spotify": {
    "client_secret": "xxxxxx",
    "client_id": "xxxxxx",
  },
  "slack": {
    "signing_secret": "xxxxxx",
  }
}

Slack app configuration

  1. Create an app on Slack
  2. Enable Event Subscription
  • Request url: https://<region>-<firebase-project-id>.cloudfunctions.net/events
  • Subscribe to events on behalf of a user: reaction_added, reaction_removed
  1. Add User Token Scopes in OAuth & Permissions
  • reactions:read
  • users.profile:read
  • users.profile:write
  1. Install App
  2. Set token in Firebase config: firebase functions:config:set slack.token="xoxp-xxxxxx"

Steam configuration

(Note: This requires that your Steam profile and game details are public. You can find these settings in your Steam profile under View Profile > Edit Profile > Privacy Settings. Ensure that My profile: Public and Game details: Public are set.)

  1. Get a Steam API key here
  2. Get your numeric Steam ID: https://<region>-<firebase-project-id>.cloudfunctions.net/steamId?username=<your Steam display name>
  3. Set steam id in Firebase config: firebase functions:config:set steam.user_id="xxxxxx"

Spotify configuration

  1. Create a Spotify app here
  2. Set client id, client secret and redirect url in your Firebase config: firebase functions:config:set spotify.client_id="xxxxxx" spotify.client_secret="xxxxxx" spotify.redirect_uri="https://<region>-<firebase-project-id>.cloudfunctions.net/spotifyOAuth"
  3. Get a refresh token by going through the OAUTH flow https://<region>-<firebase-project-id>.cloudfunctions.net/spotifyConnect
  4. Set refresh token in Firebase config: firebase functions:config:set spotify.refresh_token="xxxxxx"

slack-status's People

Contributors

pichsenmeister avatar

Stargazers

 avatar

Watchers

 avatar  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.