Discord music bot using discord.py, slash commands, and yt-dlp.

Overview

bop

Discord music bot using discord.py, slash commands, and yt-dlp.

Features

  • Play music from YouTube videos and playlists
  • Queue system with shuffle
  • Skip songs
  • Loop a song or the whole queue

Running the bot

Install Docker, then pull and run the image:

docker pull hizkifw/discord-bop:latest
docker run --rm -e BOT_TOKEN="insert_bot_token_here" -e GUILD_IDS="[1234567890123456789]" hizkifw/discord-bop:latest
  • BOT_TOKEN: discord bot token
  • GUILD_IDS: json int array of guild ids, e.g. [730136766748819609, 1189998819991197253]

Command reference

Command Description
/join Join the voice channel you are currently in.
/leave Leave the voice channel it is currently in.
/play query

Add a song to the end of the queue. query can either be a YouTube video or playlist URL, a search term, or a number.

  • When given a playlist URL, will add all videos in the playlist to the back of the queue.
  • When given a search term, will pick the top result from YouTube search and add it to the end of the queue.
  • When given a number, will skip playback to that song number in the queue.
/pause Pause the current song.
/resume Unpause the current song.
/np Show the currently playing song.
/queue Show the current queue.
/clear Remove all songs from the queue and stop playback.
/remove number Remove the specified song number from the queue.
/shuffle Randomize the order of the songs in the current queue. This is not an on/off toggle. The shuffling happens once when the command is invoked.
/skip [number] Skip the currently playing song and play the next song. If number is supplied, will skip that many songs. If number is negative, will skip backwards.
/loop mode Enable/disable looping of the current song or the whole queue.
You might also like...
A simple telegram bot that resolves video urls using yt-dlp

URL to Video Telegram Bot A simple telegram bot that resolves video urls using yt-dlp Copyright (C) 2021 Vรญtor Vasconcellos This program is free softw

veez music is a telegram music bot project, allow you to play music on voice chat group telegram.
veez music is a telegram music bot project, allow you to play music on voice chat group telegram.

๐ŸŽถ VEEZ MUSIC BOT Veez Music is a telegram bot project that's allow you to play music on telegram voice chat group. Requirements ๐Ÿ“ FFmpeg NodeJS node

ELiza music is a telegram music bot project, allow you to play music on voice chat group telegram.
ELiza music is a telegram music bot project, allow you to play music on voice chat group telegram.

โค๏ธ ๐—˜๐—น๐—ถ๐˜‡๐—ฎ ๐— ๐˜‚๐˜€๐—ถ๐—ฐ โค๏ธ Unmaintained. The new repo of @MrsElizaRobot is private. (It is no longer based on this source code. The completely rewrit

A discord bot wrapper for python have slash command

A discord bot wrapper for python have slash command

Pincer-ext-commands - A simple, lightweight package for pincer prefixed commands

pincer.ext.commands A reimagining of pincer's command system and bot system. Ins

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A Discord Bot - has a few commands. Built using python - Discord.py - RIP.
A Discord Bot - has a few commands. Built using python - Discord.py - RIP.

Discord_Bot A Discord Bot has been built here. It is capable of running a few commands. The below present screenshot should suffice in terms of explai

A drop-in vanilla discord.py cog to add slash command support with little to no code modifications

discord.py /slash cog A drop-in vanilla discord.py cog that acts as a translation layer to add slash command support with little to no code modificati

Slash util - A simple script to add application command support to discord.py v2.0
Slash util - A simple script to add application command support to discord.py v2.0

slash_util is a simple wrapper around slash commands for discord.py This is writ

Owner
Hizkia Felix
Building tools to make life a bit more enjoyable.
Hizkia Felix
An example Music Bot written in Disnake and uses slash commands to operate.

Music Bot An example music bot that is written in Disnake [Maintained discord.py Fork] Disnake Disnake is a maintained and updated fork of discord.py.

null 6 Jan 8, 2022
A Slash Commands Discord Bot created using Pycord!

Hey, I am Slash Bot. A Bot which works with Slash Commands! Prerequisites Python 3+ Check out. the requirements.txt and install all the pakages. Insta

Saumya Patel 18 Nov 15, 2022
Your custom slash commands Discord bot!

Slashy - Your custom slash-commands bot Hey, I'm Slashy - your friendly neighborhood custom-command bot! The code for this bot exists because I'm like

Omar Zunic 8 Dec 20, 2022
Your custom slash commands Discord bot!

Slashy - Your custom slash-commands bot Hey, I'm Slashy - your friendly neighborhood custom-command bot! The code for this bot exists because I'm like

Omar Zunic 3 Jan 8, 2022
A Python wrapper for discord slash-commands, designed to extend discord.py.

dislash.py An extending library for discord.py that allows to build awesome slash-commands. โญ

null 173 Dec 19, 2022
An example of using discordpy 2.0.0a to create a bot that supports slash commands

DpySlashBotExample An example of using discordpy 2.0.0a to create a bot that supports slash commands. This is not a fully complete bot, just an exampl

null 7 Oct 17, 2022
Attempting to create a framework for Discord Slash commands... yes

discord_slash.py Attempting to create a framework for Discord Slash commands... yes Installation pip install slashpy Documentation Coming soonโ„ข Why is

AlexFlipnote 11 Mar 24, 2021
A python library for creating Slack slash commands using AWS Lambda Functions

slashbot Slashbot makes it easy to create slash commands using AWS Lambda functions. These can be handy for creating a secure way to execute automated

Eric Brassell 17 Oct 21, 2022
Uploader-Bot - A Modified Telegram Url Uploader Bot With Mongodb, Zee5, Sonyliv Support and Many Other Yt-dlp Sites

???????????????? ?????????????????? ?? APP_ID API_HASH TG_BOT_TOKEN DATABASE_URL

null 11 Sep 10, 2022
veez music bot is a telegram music bot project, allow you to play music on voice chat group telegram.

?? Veez Music Bot Music bot for playing music on telegram voice chat group. Requirements ?? FFmpeg NodeJS nodesource.com Python 3.7+ PyTgCalls ?? Get

levina 143 Jun 19, 2022