Skip to main content

Fork of lavaplay.py made for glimpse. Original repository: https://github.com/HazemMeqdad/lavaplay.py

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.set_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_glimpse_py-1.0.20.4.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

lavaplay_glimpse_py-1.0.20.4-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file lavaplay_glimpse_py-1.0.20.4.tar.gz.

File metadata

  • Download URL: lavaplay_glimpse_py-1.0.20.4.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for lavaplay_glimpse_py-1.0.20.4.tar.gz
Algorithm Hash digest
SHA256 2abe9f82dacd67a593e3f7950c0c82a0fed1589ddf50a36a105cae83f2e393bc
MD5 ab58d1f1838bad62f0c0b55902bb4d4c
BLAKE2b-256 fa589f27076dadbe0bc7a21cf9ddaf0f0e44aa986269d65dd3e18ec4df77003a

See more details on using hashes here.

File details

Details for the file lavaplay_glimpse_py-1.0.20.4-py3-none-any.whl.

File metadata

File hashes

Hashes for lavaplay_glimpse_py-1.0.20.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ddbd33e2b61df5037f922d4145e81681d87a7db09f6891cd6afff3f11ea72552
MD5 53e51383e3cf21a08a3fe43cda5d275d
BLAKE2b-256 ea01d913b4ca24b35a95c6f9d0b1507007ec37c45eeec16849a141ef465e1feb

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