Lavalink4NET.Fluxer
0.2.0
dotnet add package Lavalink4NET.Fluxer --version 0.2.0
NuGet\Install-Package Lavalink4NET.Fluxer -Version 0.2.0
<PackageReference Include="Lavalink4NET.Fluxer" Version="0.2.0" />
<PackageVersion Include="Lavalink4NET.Fluxer" Version="0.2.0" />
<PackageReference Include="Lavalink4NET.Fluxer" />
paket add Lavalink4NET.Fluxer --version 0.2.0
#r "nuget: Lavalink4NET.Fluxer, 0.2.0"
#:package Lavalink4NET.Fluxer@0.2.0
#addin nuget:?package=Lavalink4NET.Fluxer&version=0.2.0
#tool nuget:?package=Lavalink4NET.Fluxer&version=0.2.0
Lavalink4NET.Fluxer
Lavalink4NET support for Fluxer.Net bots.
It needs a Lavalink node running lavalink-fluxer-plugin. The
bot joins voice through Fluxer.Net.Voice, and FluxerAudioBridge streams each player's audio from the node into
that connection.
Installation
dotnet add package Lavalink4NET.Fluxer
Usage
Single node:
services.AddSingleton(fluxerClient);
services.AddLavalink();
services.ConfigureLavalink(options =>
{
options.BaseAddress = new Uri("http://localhost:2333");
options.Passphrase = "youshallnotpass";
});
Cluster:
services.AddLavalinkCluster<FluxerClientWrapper>();
services.AddFluxerAudio(options =>
options.Nodes.Add(new FluxerAudioNode(new Uri("http://localhost:2333"), "youshallnotpass")));
Players are then used the same way as with any other Lavalink4NET client.
Several players per guild
A player created with a guild id keeps one voice connection in that guild. A player created with a voice channel id in place of the guild id gets its own connection to that channel, next to the bot's other connections in the guild.
var player = await audioService.Players.JoinAsync(voiceChannelId, voiceChannelId, PlayerFactory.Queued);
Don't mix the two in one guild.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Fluxer.Net.Voice (>= 4.2.0)
- Lavalink4NET (>= 4.2.2)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.