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

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

  • Spotify support
  • new Rest api for lavalink support
  • connection handler
  • 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.15a0.tar.gz (17.4 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.15a0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lavaplay_py-1.0.15a0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lavaplay_py-1.0.15a0.tar.gz
Algorithm Hash digest
SHA256 c3378fab80c4b48b3a35ed1f06b819c8c084ffc216f9c7e88ed65cb89c8e2865
MD5 242827c83dd6abd005b3e209bb2c9c7d
BLAKE2b-256 e864d4e4a0be81e48dc695cb68b3a9044a6bedd6a9440d1006f81353aa9a9ce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lavaplay_py-1.0.15a0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lavaplay_py-1.0.15a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c6255d60c8f5a7a3fa7d3a930eacb5471fed662c2186bb5508aded5b1c25b9
MD5 a701346369412db3d2bb8466a8d26af7
BLAKE2b-256 da29dd9f78731d2a655c04ae070f4438b5dc5c65cf8ba410caaeae5661397d19

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