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:
await node.connect()
bot.run()
examples for some methods.
# Auto search mix with track or query
await lavalink.auto_search_tracks("Rick Astley")
# Play track
await lavalink.play(guild_id, track)
# Skip
await lavalink.skip(guild_id)
# Pause
await lavalink.pause(guild_id, stats)
# Volume
await lavalink.volume(guild_id, volume)
Features
- Spotify 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
Release history Release notifications | RSS feed
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.11a0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for lavaplay.py-1.0.11a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72bf07c869d08855675753daff81e3d31a86d01fd420e92404fc1e37e00e9caa |
|
MD5 | 4385d9ea9ea232604e48a058ccda789f |
|
BLAKE2b-256 | aab6f0e24052a49522ae87f4a7490d95a57c19715a1671114de8f86db4ac2c2e |