-
create
.envto 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.If you are using Ngrok, the endpoint will appear in your terminal after running above command. Set
https://<random>.ngrok-free.app/discord/callbackas the interaction endpoint URL.
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|