Skip to content

Spotify Player Bot integrates Bot Framework v4 with Spotify Web Api.

License

Notifications You must be signed in to change notification settings

bragner/Spotify-Player-Bot

Repository files navigation

Spotify Player Bot

This bot helps you listening to your favorite tracks via Spotify through quick and easy conversations which controls your Spotify Player. This bot has been created using Microsoft Bot Framework.

Prerequisites

Set up Spotify

  • Navigate to Spotify Developer Dashboard
  • Sign in to your Spotify Premium account
  • Click CREATE A CLIENT ID
  • Supply name, description and type
  • Accept Spotifys all license agreements to create your non-commercial app
  • Once the app is created store your Client ID and Client Secret as they will be used later
  • Click Edit Settings
  • Supply http://localhost:3979/callback as a Redirect URI, click Add and Save

Running Locally

Visual Studio

  • Open SpotifyPlayerBot.csproj in Visual Studio.
  • Open appSettings.json
  • Add your Client ID as "spotifyAppId" and your Client Secret as "spotifyAppSecret"
  • Run the project (press F5 key).

Testing the bot using Bot Framework Emulator

Microsoft Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

Connect to bot using Bot Framework Emulator V4

Using the Spotify Player Bot

The Spotify Player Bot can control your player via the Control card: File Such as play, pause, switching tracks, search and toggling repeat/shuffle. There is also ability to search for tracks and artists.

Spotify Player Bot can handle simple text input such as:

  • play
  • pause
  • next
  • previous
  • search {artist, track or both}

Instructions

Spotify Developer Terms of Service

Please be aware of Spotify Developer Terms of Service if you intend to use any of this work. You can find Spotify Developer Terms of Service here.

Releases

No releases published

Packages

No packages published