8000 GitHub - alkshmir/random-song-bot: send spotify random song to discord
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alkshmir/random-song-bot

Repository files navigation

random song bot

Deployment

  1. create .env to set the following environment variables

    • CLIENT_ID: spotify api client id
    • CLIENT_SECRET: spotify api client secret
    • SPOTIFY_PLAYLIST_ID: spotify playlist id
    • DISCORD_PUBLIC_KEY: discord public key
    • DISCORD_BOT_TOKEN: discord bot token
    • PORT: port to listen requests (optional)
  2. Deploy app where request is reachable from the internet

    The easiest way to use ngrok. Run the application with go run . with ngrok tunnelling with

    ngrok http http://localhost:<port>
    
  3. 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.

About

send spotify random song to discord

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0