Code Monkey home page Code Monkey logo

discord-music-bot's Introduction

discord-music-bot

Build Status
This is a discord bot that plays music in your server

a) Install everything mentioned in the requirements.txt
b) Also install ffmpeg using:

Debian based OS (Ubuntu, Raspberry Pi OS, Debian 10)
$sudo apt install ffmpeg

Using Snap
$sudo snap install ffmpeg

c)Create a bot/app in the discord developer platform
d)Create a Youtube V3 API token and note it down e)Add the youtube API tokeb variable: $export API_TOKEN=YOUR_Youtube_API_TOKEN
d)Note your discord bot TOKEN
e)Add the TOKEN variable: $export TOKEN=YOUR_TOKEN
f)Use the OAuth2 link and add the bot to your desired discord bot
g)You can change the docker bot prefix: $export PREFIX=PREFIX_CHARACTER
Example: $export PREFIX=!
h)For spotify you will have to use the developer platform. Create an app and note the ID and secret
j)Export variables: &export SPOTIFY_ID=<YOUR_SPOTIFY_DEV_ID> and $export SPOTIFY_SECRET=<SPOTIFY_DEV_SECRET>

Default character is: &

Execution

$python3 bot.py

Bot commands:

a) &join => Telling the bot to join the VC (important for playing music)
b) &play <Youtube URL> => Plays the audio from youtube url
c) &pause => Pausing the song
d) &resume => Resume music
e) &queue => Shows the music queue list
f) &skip => Skips the music to the next song
g) &stop => Stops music and clears queue
h)&shuffle=> Shuffles the queue of music

Container Usage

https://hub.docker.com/repository/docker/raghavtinker/discordmusicbot

Features:

a)Can play playlists from spotify and youtube
b)Can play single tracks from youtube urls and spotify urls
c)Can play spotify albums
d)You can also simply put the song name to play it via youtube
e)Do note: Playlists in Spotify arent streamed from it. Rather they are used to create a youtube playlist which is streamed

discord-music-bot's People

Contributors

raghavtinker avatar rdotjain avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

discord-music-bot's Issues

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.