fixing missing dependency

This commit is contained in:
José Henrique Ivanchechen 2023-02-01 17:32:21 -03:00
parent 776eb9868d
commit ae9c3cfa35
2 changed files with 3 additions and 8 deletions

View File

@ -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"]

View File

@ -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
{