From ae9c3cfa3528e2e20fa4cae5fb0a38012337bcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique=20Ivanchechen?= Date: Wed, 1 Feb 2023 17:32:21 -0300 Subject: [PATCH] fixing missing dependency --- Dockerfile | 2 +- Services/PlayerService.cs | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 278694d..d8c1f73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN dotnet build -c Release -o out # Build runtime image FROM mcr.microsoft.com/dotnet/aspnet:6.0 -RUN apt update && apt install -y ffmpeg libopus-dev opus-tools +RUN apt update && apt install -y ffmpeg libopus-dev opus-tools libsodium-dev WORKDIR /App COPY --from=build-env /App/out . ENTRYPOINT ["dotnet", "Kasbot.dll"] \ No newline at end of file diff --git a/Services/PlayerService.cs b/Services/PlayerService.cs index 842a444..38909ca 100644 --- a/Services/PlayerService.cs +++ b/Services/PlayerService.cs @@ -1,13 +1,8 @@ -using AngleSharp; -using Discord; +using Discord; using Discord.Audio; -using Discord.Audio.Streams; using Discord.Commands; using Discord.WebSocket; -using System; using System.Diagnostics; -using System.IO; -using System.IO.Pipes; using YoutubeExplode; using YoutubeExplode.Videos.Streams; @@ -42,7 +37,7 @@ namespace Kasbot.Services { IVoiceChannel channel = (Context.User as IVoiceState).VoiceChannel; - string filename = string.Empty; + string filename; try {