Display the currently playing track on spotify in slack status.
-
Create a new Google Apps Script file.
-
Paste the contents of change_slack_status.js into the file created in step 1.
- slack_token and spotify_token need to be rewritten to yours.
- spotify_emoji can be changed to arbitrary one.
-
Set the trigger of GogoleAppsScript as follows.
- function
- myFunction
- Event Souce
- Time-driven
- Type of time based trigger
- Minutes timer
- Minute interval
- Every minute (select update status frequency as you like)
- function
See the link below