Support Guild | Examples | Documentation | Source
Its a lavalink nodes manger to make a music bots for discord with python.
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
example for create connecting with lavalink server using hikari.
importhikariimportlavaplayerbot=hikari.GatewayBot("token") lavalink=lavaplayer.LavalinkClient( host="localhost", port=2333, password="youshallnotpass", bot_id=123 ) @bot.listen(hikari.ShardReadyEvent)asyncdefstart_lavalink(event): awaitlavalink.connect() bot.run()examples for some methods.
# Auto search mix with track or queryawaitlavalink.auto_search_tracks("Rick Astley") # Play trackawaitlavalink.play(guild_id, track) # Skipawaitlavalink.skip(guild_id) # Pauseawaitlavalink.pause(guild_id, stats) # Volumeawaitlavalink.volume(guild_id, volume)- Spotify support
- connection handler
- Support youtube playlist
- Add example for other discord wrapper library
# Linux/OS X $ pip3 install -U lavaplayer # Windows $ pip install -U lavaplayer