A very simple bot that returns a song.link URL for songs shared to a channel using most major streaming platform's share URL's.
- Create Application via Discord Developer Portal - give it a fun name
- Configure your bot via the 'Bot' tab - ensure you have enabled 'message content intent'
- Generate and take note of your bot token you will need this when creating your .env file below
- Copy your application ID from the general information tab
- Add bot to your server using the following link, inserting your application ID after
id=
:https://discord.com/api/oauth2/authorize?client_id=&permissions=137439217728&scope=bot
- Download the source code zip from the releases tab
- Install from the requirements.txt How-To
- Create a .env file in the package directory and include the following line:
DISCORD_TOKEN=<YOUR-BOT-TOKEN>
- Start the bot by running
bot.py
in your terminal - Invoke the bot using
?sl
followed by the url of the song you wish to share - please see below for a full list of supported streaming platforms - The bot will then reply with a song.link url for your song.
- User sends: ?sl https://tidal.com/browse/track/87166293
- Bot Replies: https://song.link/t/87166293
- Please see the 'Examples' folder for screenshots
- spotify
- itunes
- appleMusic
- youtube
- youtubeMusic
- googleStore
- pandora
- deezer
- tidal
- amazonStore
- amazonMusic
- soundcloud
- napster
- yandex
- spinrilla
- audius
- anghami
- boomplay
- audiomack
This bot was built as a personal project and is in no way affiliated with Odesli/SongLink. For Odesli's terms of service and API information please refer to https://odesli.co/