moved dockerfile to alpine, added some errors in music

This commit is contained in:
Toastie 2025-02-13 12:34:08 +13:00
parent 71242d3e80
commit 9cd67a22c4
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
4 changed files with 24 additions and 13 deletions
src
EllieBot.Voice
EllieBot/Modules/Music/_common/Impl

View file

@ -5,6 +5,7 @@ namespace EllieBot.Voice
{
internal static unsafe class Sodium
{
private const string SODIUM = "data/lib/libsodium";
[DllImport(SODIUM, EntryPoint = "crypto_secretbox_easy", CallingConvention = CallingConvention.Cdecl)]

View file

@ -41,8 +41,9 @@ public sealed class VoiceProxy : IVoiceProxy
vc.SendPcmFrame(gw, data, 0, length);
return true;
}
catch (Exception)
catch (Exception ex)
{
Log.Error(ex, "Couldn't send pcm frame: {Message}", ex.Message);
return false;
}
}