Git Product home page Git Product logo

discord-odesli-bot's Introduction

Discord bot for Odesli (formerly Songlink)

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.

Getting Started

Discord Prep:

  1. Create Application via Discord Developer Portal - give it a fun name
  2. Configure your bot via the 'Bot' tab - ensure you have enabled 'message content intent'
  3. Generate and take note of your bot token you will need this when creating your .env file below
  4. Copy your application ID from the general information tab
  5. 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

Python Prep:

  1. Download the source code zip from the releases tab
  2. Install from the requirements.txt How-To
  3. Create a .env file in the package directory and include the following line: DISCORD_TOKEN=<YOUR-BOT-TOKEN>

Usage

  1. Start the bot by running bot.py in your terminal
  2. 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
  3. The bot will then reply with a song.link url for your song.

Example:

Supported Streaming Platforms:

  • spotify
  • itunes
  • appleMusic
  • youtube
  • youtubeMusic
  • google
  • googleStore
  • pandora
  • deezer
  • tidal
  • amazonStore
  • amazonMusic
  • soundcloud
  • napster
  • yandex
  • spinrilla
  • audius
  • anghami
  • boomplay
  • audiomack

Credits & Inspiration

Disclaimer

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/

discord-odesli-bot's People

Contributors

jordishore avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.