项目介绍

Yucked/Victoria 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,目前获得 194 个 Star、47 次 Fork。

仓库全名
Yucked/Victoria
Star 数
194
Fork 数
47
未关闭 Issue
1

README 摘要

🌋 - Lavalink wrapper for Discord.NET which provides more options and performs better than all .NET Lavalink libraries combined. Changelog v7.0 Victoria 7.x rewrites focuses on Lavalink v4 support. Lavalink v4 introduces several changes which break Victoria's functionality on v6.x, to avoid codebase overhaul on user's end, breaking changes are minimal on Victoria' end. ➕ Additions: ExceptionSeverity for Lavalink…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Victoria 用什么语言开发?

主要使用 C# 编写,目前有 194 个 Star。

如何获取 Victoria 的源码?

可以直接克隆仓库:git clone https://github.com/Yucked/Victoria.git,默认分支为 v7;安装与运行步骤见仓库 README。

Victoria 最近还在维护吗?

仓库最近一次更新为 10月5日,当前有 1 个未关闭 Issue;Star 数为 194,可作为社区活跃度的参考。

关于

🌋 - Lavalink wrapper for Discord.NET. Provides more options and performs better than all .NET Lavalink libraries combined.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
293
价值分
130
活跃状态
活跃

语言占比

C#

Release

README


🌋 - Lavalink wrapper for Discord.NET which provides more options and performs better than all .NET Lavalink libraries combined.

Changelog v7.0

Victoria 7.x rewrites focuses on Lavalink v4 support. Lavalink v4 introduces several changes which break Victoria’s functionality on v6.x, to avoid codebase overhaul on user’s end, breaking changes are minimal on Victoria’ end.

➕ Additions:
  • ExceptionSeverity for Lavalink exceptions
  • Introduced ISRC, SourceName, PluginInfo, Artwork properties in LavaTrack
  • Added LavaNodeExtensions, LavaPlayerExtensions for non-API methods.
  • Added GetLavalinkVersionAsync, GetLavalinkStatsAsync, UpdatePlayerAsync, UpdateSessionAsync, DestroyPlayerAsync methods to LavaNode.
❌ Removals:
  • ArtworkResolver, LyricsResolver have been moved to Victoria.Addons, this will be a separate package.
  • Removed Bands, TextChannel, VoiceChannel, IsConnected properties from LavaPlayer.
💀 Modifications:
  • Vueue is renamed to LavaQueue, this change my be reverted.
  • LavaPlayer no longer contains any methods for controlling the player.
  • RoutePlanner has been merged with LavaNode.

Quick Start

Full example code @ https://github.com/Yucked/Victoria/tree/examples/v7

🐲 Program.cs

            var serviceCollection = new ServiceCollection()
                // .. other services
                .AddLogging(x => {
                    x.ClearProviders();
                    x.AddColorfulConsole();
                    x.SetMinimumLevel(LogLevel.Trace);
                })
                .AddLavaNode()                
                .AddSingleton<AudioService>();

🤖 Discord Service / Events Handler

        private async Task OnReadyAsync() {
            // connect to lavalink
            await _serviceProvider.UseLavaNodeAsync();
        }

🎸 AudioModule.cs

    [Command("Join")]
    public async Task JoinAsync() {
        var voiceState = Context.User as IVoiceState;
        if (voiceState?.VoiceChannel == null) {
            await ReplyAsync("You must be connected to a voice channel!");
            return;
        }
        
        try {
            await lavaNode.JoinAsync(voiceState.VoiceChannel);
            await ReplyAsync($"Joined {voiceState.VoiceChannel.Name}!");
            
            audioService.TextChannels.TryAdd(Context.Guild.Id, Context.Channel.Id);
        }
        catch (Exception exception) {
            await ReplyAsync(exception.ToString());
        }
    }

评论

暂无评论