Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfunkz/lollipop-music-discord.py
Discord.py music bot made with lavalink and wavelink
https://github.com/cfunkz/lollipop-music-discord.py
discord discord-bot discord-py free lavalink lavalink-bot open-source python wavelink wavelink-bot
Last synced: 25 days ago
JSON representation
Discord.py music bot made with lavalink and wavelink
- Host: GitHub
- URL: https://github.com/cfunkz/lollipop-music-discord.py
- Owner: cfunkz
- License: apache-2.0
- Created: 2023-11-03T22:12:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-09T00:23:31.000Z (about 1 year ago)
- Last Synced: 2023-12-09T01:26:00.369Z (about 1 year ago)
- Topics: discord, discord-bot, discord-py, free, lavalink, lavalink-bot, open-source, python, wavelink, wavelink-bot
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interactive Discord.py Music Bot
This is a Python Discord bot that provides music-related commands for your server with buttons included. This bot is designed to be used with the [discord.py](https://github.com/Rapptz/discord.py), [Lavalink](https://github.com/lavalink-devs/Lavalink) backend for audio streaming, processing and lastly [Wavelink](https://github.com/PythonistaGuild/Wavelink) as wrapper.
# **THIS REQUIRES LAVALINK SERVER SETUP BEFOREHAND.. ITS EASY TO DO RESEARCH!**
## Features
- Play music from YouTube, Soundcloud, HTTP, Vimeo & Spotify(no playlist support yet, only links with `spotify.com/track` will work).
- Create and manage a queue of songs.
- Display the currently playing song.
- Control playback (skip, pause, resume, stop).
- Adjust volume.
- Shuffle the queue.
- Repeat a song or the entire queue.## Dependencies
Before you can run the Music Bot, make sure you have the following dependencies installed:
- [Python](https://www.python.org/) (Python 3.7 or higher)
- [discord-py](https://github.com/Rapptz/discord.py)
- [Wavelink](https://github.com/PythonistaGuild/Wavelink)
- [Lavalink](https://github.com/lavalink-devs/Lavalink) server running. VPS or Home PC.Lavalink download on linux.
- `sudo yum update`
- `sudo yum install wget`
- `wget $(curl -s "https://api.github.com/repos/lavalink-devs/Lavalink/releases/latest" | grep 'browser_' | cut -d\" -f4)`
- `wget https://raw.githubusercontent.com/lavalink-devs/Lavalink/master/LavalinkServer/application.yml.example -O application.yml`## Installation
1. Download the Music Bot source code from this repository.
2. Set up and configure the necessary dependencies and environment for the bot, such as Python and the required libraries.
3. Run the bot using the appropriate command or script to start it. Should work on replit also because I am hosting my bot on replit and it works fine.
## Usage
1. Join a voice channel: `/play ` - Searches YouTube for a song and plays it in the user's voice channel.
2. Display the currently playing song: `/nowplaying` - Shows the song that is currently playing with a progress bar.
3. View queue: `/queue` - View current queue.
4. Skip the current song: `/skip` - Skips the current song and plays the next one in the queue.
5. Play the previous song: `/previous` - Plays the last song in the queue history.
6. Clear the queue: `/clear` - Clears the song queue.
7. Shuffle the queue: `/shuffle` - Shuffles the order of songs in the queue.
8. Pause playback: `/pause` - Pauses the currently playing song.
9. Resume playback: `/resume` - Resumes playback if it's paused.
10. Stop playback and disconnect: `/stop` - Stops playback and disconnects the bot from the voice channel.
11. Adjust volume: `/volume ` - Sets the volume of the bot (0-100%).
12. Repeat all songs in the queue: `/repeatall` - Toggles repeat mode for the entire queue.
13. Repeat the current song: `/repeat` - Toggles repeat mode for the current song.## Credits
This bot is built using the [discord.py](https://github.com/Rapptz/discord.py), [wavelink](https://github.com/PythonistaGuild/Wavelink) and [Lavalink](https://github.com/lavalink-devs/Lavalink) libraries. Special thanks to the developers of these libraries for making it possible to create such functionality.
## License
This code is available under the Apache 2.0 License. Contact me for any details through discord/email or github.