HazemMeqdad / lavaplayer

Its a lavalink nodes manger to make a music bots for discord with python.

Home Page:https://lavaplayer.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.Lavalink(
    host="localhost",
    port=2333,
    password="youshallnotpass",
    user_id=123
)

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

About

Its a lavalink nodes manger to make a music bots for discord with python.

https://lavaplayer.rtfd.io

License:MIT License


Languages

Language:Python 100.0%