Remote control your Spotify app playback, create playlists, fetch lyrics of your playing songs, and sync your listenening with friends all within discord.
This bot uses cookies to authenticate to the Spotify Web API so it does not require a premium Spotify account.
To properly host this bot, you must configure the following environment variables first.
CLIENT_ID:
Your bot's ID.
TOKEN:
The bot's secret access token.
GUILD_ID:
The ID of the server you want to run this bot on.
KEY:
Database encryption key.
CHROME:
Full path to a chrome/chromium install, needed to run puppeteer for retrieving cookies.
GENIUS_KEY:
A Genius API application access token, Required for fetching lyrics. Create one at https://genius.com/api-clients
LOG:
Log file, if empty stdout is used.
LOG_LEVEL:
The log level, possible values are [error, warn, info, debug]
LOCAL:
If set to 0, the bot will save a snapshot of the database on an SFTP server and update it on every change, as well as fetch it whenever it is lost. useful for hosting on services like heroku where file changes don't persist.
The following options only apply if LOCAL=0
SFTP_HOST:
The SFTP server to use.
SFTP_USER:
The SFTP server's username.
SFTP_PORT:
The SFTP server's port.
SFTP_PASSWORD:
The SFTP server's password.