Skip to content

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

License

Notifications You must be signed in to change notification settings

HazemMeqdad/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.

importhikariimportlavaplaybot=hikari.GatewayBot("token") lavalink=lavaplay.Lavalink() node=lavalink.create_node( host="localhost", port=2333, password="youshallnotpass", user_id=123 ) @bot.listen()asyncdefon_ready(event: hikari.ShardReadyEvent) ->None: node.connect() bot.run()

examples for some methods.

# Player objectplayer=node.get_player(guild_id) # Auto search mix with track or queryawaitplayer.auto_search_tracks("Rick Astley") # Play trackawaitplayer.play(track) # Skipawaitplayer.skip() # Pauseawaitplayer.pause(stats) # Volumeawaitplayer.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

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

    Contributors 11

    Languages