Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lavaplay_py-1.0.19a0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lavaplay_py-1.0.19a0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file lavaplay_py-1.0.19a0.tar.gz.

File metadata

  • Download URL: lavaplay_py-1.0.19a0.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

Hashes for lavaplay_py-1.0.19a0.tar.gz
Algorithm Hash digest
SHA256 530f81663bddc6c2046662ea6b11ba70e0ae19e13ca51f7a690e58036d994c32
MD5 875358417bfbb453d5d8ac793fdd8b88
BLAKE2b-256 72289a7ab6f182e79c697c6387fe8c049338d204e93afcf88338783e7536cd6b

See more details on using hashes here.

File details

Details for the file lavaplay_py-1.0.19a0-py3-none-any.whl.

File metadata

  • Download URL: lavaplay_py-1.0.19a0-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

Hashes for lavaplay_py-1.0.19a0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7b8e61bca101a733114bf161a4ee39cc53611f1017d25937bf1b0ce9d60c4b
MD5 1152c55d4ca615ec86199fb4ef98352a
BLAKE2b-256 dba1feb1ec077a29f50487a80764c6ffe0eafadc79623881857ae97d0f33fd12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page