Skip to content

Control your Spotify account from a Discord Bot!

License

Notifications You must be signed in to change notification settings

Kathund/Spotify-Manager

Repository files navigation

Spotify Manager

Control spotify via a discord bot! What could go wrong? Allow anyone to queue songs, manage playback statusm and more all from a discord bot. This application uses Discord.js v14 and the Spotify Web API.

Table of Contents

Requirements

Creating a Spotify Developer App

  1. Go to the Spotify Developer Dashboard
  2. Click on Create an App
  3. Fill out the form with the following information:
    • App Name: Spotify Manager
    • App Description: Control spotify via a discord bot! What could go wrong? Allow anyone to queue songs, manage playback statusm and more all from a discord bot.
    • Redirect URIs: http://localhost:18173/auth/callback
    • Which API/SDKs are you planning to use?: Web API
  4. Click on Save

From here, you will be able to see your Client ID. You will need these to run the application.

Getting Client Id

  1. Go to the Spotify Developer Dashboard
  2. Click on Spotify Manager
  3. Click on Settings
  4. Copy the Client ID and save them into a safe place. These will be used later on in the setup process.

Creating a Discord Bot

  1. Go to the Discord Developer Portal
  2. Select new application and give it a name.
  3. Go to the Bot tab and click on Reset Token
  4. Save the token in a safe place. You will need this later on in the setup process.

Installation

Git

  1. Download the installer from Git Website.
  2. Run the installer and leave all the default settings.

Node.js

  1. Download the installer from Node.js Website.
  2. Run the installer and leave all the default settings.

pnpm

  1. Open a terminal
  2. Run the following command:
npm install -g pnpm

Setup

  1. Clone the repository
git clone https://github.com/kathund/Spotify-Manager.git
  1. Change directory to the project
cd Spotify-Manager
  1. Install the dependencies
pnpm install
  1. Setup the configuration by running the following command:
pnpm setup-config

This is where you will input the Client ID and Discord Bot Token that you saved earlier.

⚠️ Note if you dont use the default emojis for the bot you will need go to the Discord Application's portal and add emojis with the same names as the emojis in the emoji folder.

  1. Start the application
pnpm start

About

Control your Spotify account from a Discord Bot!

Resources

License

Stars

Watchers

Forks