triplej_playlist_generator

package module
v0.0.0-...-4e76757 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 3 Imported by: 0

README

🤖 triplej playlist generator (live playlist)

Automatically generate a spotify playlist from the most recently played music on the triplej radio station.

Getting Started

  1. Register your application on the developer dashboard and obtain the client_id and a client_secret.
  2. Use the authorization code on the official spotify web-api-auth-examples repo to obtain a refresh_token. Make sure to grant access to the correct playlist type when fetching this token. You can read about scopes here. As my playlist is public I only need the playlist-modify-public scope.
  3. Create a playlist in spotify and copy the link to it. Note we just want the playlist_id.
  4. Edit the makefile and add the above config.
  5. run make

Helpful gcloud Commands

Execute on Cloud Run:

gcloud beta run jobs execute cron-bot

Deploy a new build:

gcloud builds submit --pack image=gcr.io/triple-j-bot/cron-bot

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBot

func StartBot(http.ResponseWriter, *http.Request)

StartBot is the entry point for our cloud function

Types

This section is empty.

Directories

Path Synopsis
pkg
spotify/mocks
Package mock_spotify is a generated GoMock package.
Package mock_spotify is a generated GoMock package.
triplej/mocks
Package mock_triplej is a generated GoMock package.
Package mock_triplej is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL