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.12a0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

lavaplay.py-1.0.12a0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file lavaplay.py-1.0.12a0.tar.gz.

File metadata

  • Download URL: lavaplay.py-1.0.12a0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for lavaplay.py-1.0.12a0.tar.gz
Algorithm Hash digest
SHA256 af437aa28639653d6f12581c18a82c4a3c2a7d8db9e38c13f9e052c10a5b7b26
MD5 2e3b88e2d13603a10d7be4e8723f5c40
BLAKE2b-256 32529bedd50f191a9595e56e98e6d3106268b1886c01f814d61a4c846fe9ecfd

See more details on using hashes here.

File details

Details for the file lavaplay.py-1.0.12a0-py3-none-any.whl.

File metadata

File hashes

Hashes for lavaplay.py-1.0.12a0-py3-none-any.whl
Algorithm Hash digest
SHA256 58729191e3aed48eef9ecb0319ae44b2852ce3ea103a06a75c6ce6ca4eba6561
MD5 533b1a1870af98991f28dc3b32f824cc
BLAKE2b-256 ef9725da1e389a59b60ed09ea31de80e237592bbc3212ded789ac902bf5c88cb

See more details on using hashes here.

Supported by

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