Its a lavalink nodes manger to make a music bots for discord with python.
Project description
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
[!NOTE] Lavaplay now support lavalink v4 ( 1.0.13a+ )
Usage
example for create connecting with lavalink server using hikari.
import hikari
import lavaplay
bot = 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.
# 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
- Lavalink v4 support ( 1.0.13a+ )
- new Rest api for lavalink support
- connection handler
- Multi-Node Support ( Coming soon )
- Support youtube playlist
- Add example for other discord wrapper library
Installation
# Linux/OS X
$ pip3 install -U lavaplay.py
# Windows
$ pip install -U lavaplay.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lavaplay_py-1.0.20a0.tar.gz.
File metadata
- Download URL: lavaplay_py-1.0.20a0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e2370264ca3fa9271e449728bbdfd5d93cbac6ab8fcb70b88a874ca7fb6c62c
|
|
| MD5 |
a56f111aef515b0c9656b3ac4c93d754
|
|
| BLAKE2b-256 |
4dee81d229815d751fbb01b35660925f4caf623dff0601cb2af99c2d7752aec3
|
File details
Details for the file lavaplay_py-1.0.20a0-py3-none-any.whl.
File metadata
- Download URL: lavaplay_py-1.0.20a0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb61da7868cc1a2e64439e1eb97b7392870a211a759860b5ece04356605df6a6
|
|
| MD5 |
54bad3fa266bd09bfb2a25e70719d040
|
|
| BLAKE2b-256 |
7b29ec3c5fefadb01308c34f4c3bfb5f721e6a2dece390e77b582cf9b21a9d4b
|