Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hazemmeqdad/lavaplay.py
Its a lavalink nodes manager to make a music bots for discord with python.
https://github.com/hazemmeqdad/lavaplay.py
discord-music-bot lavalink lavalink-wrapper lavaplayer python3
Last synced: 12 days ago
JSON representation
Its a lavalink nodes manager to make a music bots for discord with python.
- Host: GitHub
- URL: https://github.com/hazemmeqdad/lavaplay.py
- Owner: HazemMeqdad
- License: mit
- Created: 2021-12-23T20:00:10.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T22:07:30.000Z (18 days ago)
- Last Synced: 2024-10-27T10:11:48.917Z (12 days ago)
- Topics: discord-music-bot, lavalink, lavalink-wrapper, lavaplayer, python3
- Language: Python
- Homepage: https://lavaplay.rtfd.io
- Size: 271 KB
- Stars: 44
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
lavaplay.py
Support Guild |
Examples |
Documentation |
Source
Its a lavalink nodes manger to make a music bots for discord with python.
# About
lavaplay.py is a nodes manager to connection with discord voice gateway, easy to create a music bot, you can use to anything async discord wrapper library
# Usage
example for create connecting with lavalink server using [hikari](https://github.com/hikari-py/hikari).
```python
import hikari
import lavaplaybot = hikari.GatewayBot("token")
lavalink = lavaplay.Lavalink()
node = lavalink.create_node(
host="localhost",
port=2333,
password="youshallnotpass",
user_id=123
)@bot.listen()
async def on_ready(event: hikari.ShardReadyEvent) -> None:
node.connect()bot.run()
```examples for some methods.
```python
# Player object
player = node.get_player(guild_id)# Auto search mix with track or query
await player.auto_search_tracks("Rick Astley")# Play track
await player.play(track)# Skip
await player.skip()# Pause
await player.pause(stats)# Volume
await player.volume(volume)
```# Features
- [ ] Spotify support
- [x] new Rest api for lavalink support
- [x] connection handler
- [x] Support youtube playlist
- [x] Add example for other discord wrapper library# Installation
```shell
# Linux/OS X
$ pip3 install -U lavaplay.py# Windows
$ pip install -U lavaplay.py
```