Lavaplay.py
Its a lavalink nodes manager to make a music bots for discord with python.
Install / Use
/learn @HazemMeqdad/Lavaplay.pyREADME
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
- [x] Lavalink v4 support ( 1.0.13a+ )
- [x] new Rest api for lavalink support
- [x] connection handler
- [ ] Multi-Node Support ( Coming soon )
- [x] Support youtube playlist
- [x] Add example for other discord wrapper library
Installation
# Linux/OS X
$ pip3 install -U lavaplay.py
# Windows
$ pip install -U lavaplay.py
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
