A quick and dirty application to leverage Spotify DJ's TTS API. In specific, this provides a Discord bot that can be utilized with slash commands.
As of writing, this currently uses a fork of librespot-org/librespot underneath spotlightishere/librespot to correctly leverage Protobuf-related APIs.
- Set the environment variables
SPOTIFY_USERNAME
andSPOTIFY_PASSWORD
to the username and password of your premium Spotify account.- Free accounts are not supported by librespot, and subsequently
spotdj
cannot support free accounts. - If you sign in to Spotify via Facebook, Apple, etc., you can still reset your account's password. This will not break third-party login.
- Free accounts are not supported by librespot, and subsequently
- Set the environment variable
DISCORD_TOKEN
to the token of a bot you've created via Discord's Developer Portal. cargo run
, and enjoy!