Giter VIP home page Giter VIP logo

music_bot's Introduction

Music bot

Since a lot of discord music bots are being blocked by youtube nowadays I've decided to write up a quick project that will allow anyone to host their own discord bot. This bot includes the following commands:

/help - displays all the available commands /p - finds the song on youtube and plays it in your current channel. Will resume playing the current song if it was paused
/q - displays the current music queue
/skip - skips the current song being played
/clear - Stops the music and clears the queue
/leave - Disconnected the bot from the voice channel
/pause - pauses the current song being played or resumes if already paused
/resume - resumes playing the current song

Running with docker

To run with docker simply run the command docker run -e TOKEN=<your_token_here> -d pabolo02345/music_bot:latest

Installation

To run the discord bot all you need is python 3.4 or above.
Then run pip install -r requirements.txt to install all of the python dependencies.
Please note that you will also need to have ffmpeg installed and make sure that the path to the bin folder is in your environment variables.

Creating a bot

To create a bot follow my tutorial on https://www.youtube.com/watch?v=PJDuI9n7rWE&t=325s&ab_channel=Computeshorts. This will guide on how to create a bot.

Deploying your bot

Lastly you'll need to deploy your bot. You can follow my other tutorial on deploying with docker https://www.youtube.com/watch?v=z58g7_dHeMA but the gist is to have a server setup with all the dependencies and then run python main.py.

Token

Remember that you need to have your token setup in your environment variables as well and it should be under TOKEN. On windows you can do this by running SET TOKEN=<you_token_here>

music_bot's People

Contributors

ignacioromang avatar shaxi1 avatar pawel02 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.