-
create
.env
to set the following environment variablesCLIENT_ID
: spotify api client idCLIENT_SECRET
: spotify api client secretSPOTIFY_PLAYLIST_ID
: spotify playlist idDISCORD_PUBLIC_KEY
: discord public keyDISCORD_BOT_TOKEN
: discord bot tokenPORT
: port to listen requests (optional)
-
Deploy app where request is reachable from the internet
The easiest way to use ngrok. Run the application with
go run .
with ngrok tunnelling withngrok http http://localhost:<port>
-
Register the interaction endpoint to discord application settings
Note that endpoint is not root but
<root>/discord/callback
. Press save changes button to check the endpoint reachability from discord.
-
Notifications
You must be signed in to change notification settings - Fork 0
send spotify random song to discord
License
alkshmir/random-song-bot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
send spotify random song to discord
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published