Giter Club home page Giter Club logo

slack_spotify_status's Introduction

Slack_Spotify_Status

First things first, props to the original script, with updates found here: Original Script by jgamblin
This is a script that will run in a Terminal or iTerm window.
It will monitor your Spotify currently playing song and update your Slack status with it.

Setup

Required - Spotify
Create a file in your Home directory called .slacktoken.cfg You need to get a Legacy Token from here
This file needs to have the following text:

SLACK_TOKEN="Your Token Here"

This prevents your token from being in the same location as your script.
One note that I recently discovered. The emoticon that is in the code has to match one that you have in your Slack instance. Otherwise it won't work.

Instalation

Run the script manually

Download the bash file:

slack_status.sh

Run it and voila!

Automator

Required - iTerm2 unless you edit the file
I wanted to have an app that loaded the bash file in iTerm2 and then launched Spotify.
I have uploaded the Automator file, of which you can edit in order to run in Terminal if you wish.

Spotify-Script.app.zip

Download that, along with the slack_status.sh file.
Make sure you have the config file set correctly.
The app will attempt to open iTem, run the script, and then launch Spotify.

slack_spotify_status's People

Contributors

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