shows the currently playing song using the spotipy lib by sending a webhook to a discord webhook
Find a file
rintyuu 5cedab3495 Update main.py
i literally just copy and pasted from experimental branch
2024-09-01 10:26:28 -07:00
.env upload main.py, .env 2024-07-11 14:38:22 -07:00
image.png upload sampler 2024-07-11 14:41:54 -07:00
main.py Update main.py 2024-09-01 10:26:28 -07:00
README.md time 2024-08-17 01:32:06 -07:00

discord-nowplaying

shows the currently playing song using the spotipy lib by sending a webhook to a discord webhook

this script requires the following libraries:


dotenv, spotipy.oauth2/SpotifyOAuth, time, spotipy, requests, os

definitely make sure to install os

in your spotify application in your developer portal, copy and paste your application secrets/variables into the .env file for the python code to run properly. please also create a discord webhook, and copy it into the DISCORD_WEBHOOK_URL="" of said file.

it should look like something similar to this when you run the code.

image of content on discord.

im too lazy to format this