A sample Python project
Project description
Lavaplayer
Support Guild | Examples | Documentation | Source
Its a lavalink nodes manger to make a music bots for discord with python.
About
Lavaplayer 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 lavaplayer
bot = hikari.GatewayBot("token")
lavalink = lavaplayer.LavalinkClient(
host="localhost",
port=2333,
password="youshallnotpass",
bot_id=123
)
@bot.listen(hikari.ShardReadyEvent)
async def start_lavalink(event):
await lavalink.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 lavaplayer
# Windows
$ pip install -U lavaplayer
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
lavaplayer-1.0.5a0.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for lavaplayer-1.0.5a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8736b7705d5160135bd2083ef3eb6a8d1d98d4186efc1379e7878801023bce3f |
|
MD5 | 28aee5391345ac135f535a6db1ffc3b8 |
|
BLAKE2b-256 | f3efd2e4b99395a3b1b87464ba18eb4544379f0222b993aaaee1b052ca335344 |