diff --git a/BUILDS/net6.0/MusicCommands.dll b/BUILDS/net6.0/MusicCommands.dll index f7f0d7f..f6ecafa 100644 Binary files a/BUILDS/net6.0/MusicCommands.dll and b/BUILDS/net6.0/MusicCommands.dll differ diff --git a/BUILDS/net6.0/PluginManager.dll b/BUILDS/net6.0/PluginManager.dll index b790e5f..2016529 100644 Binary files a/BUILDS/net6.0/PluginManager.dll and b/BUILDS/net6.0/PluginManager.dll differ diff --git a/DiscordBot.sln b/DiscordBot.sln index 0960e41..0734f95 100644 --- a/DiscordBot.sln +++ b/DiscordBot.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31729.503 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32414.318 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DiscordBot", "DiscordBot\DiscordBot.csproj", "{087E64F4-1E1C-4899-8223-295356C9894A}" EndProject diff --git a/MusicCommands/MusicPlayer.cs b/MusicCommands/MusicPlayer.cs index ae58026..4f8b8dc 100644 --- a/MusicCommands/MusicPlayer.cs +++ b/MusicCommands/MusicPlayer.cs @@ -37,6 +37,15 @@ namespace MusicCommands public async Task StartSendAudioFromLink(string URL) { + + /* using (HttpClient client = new HttpClient()) + using (HttpResponseMessage response = await client.GetAsync(URL)) + using (var content = response.Content) + { + await (await content.ReadAsStreamAsync()).CopyToAsync(outputStream); + }*/ + + Stream ms = new MemoryStream(); int bsize = 512; new Thread(async delegate (object o) diff --git a/MusicCommands/lplay.cs b/MusicCommands/lplay.cs index dcaafde..ed006a7 100644 --- a/MusicCommands/lplay.cs +++ b/MusicCommands/lplay.cs @@ -5,7 +5,6 @@ using Discord.WebSocket; using Discord; using PluginManager.Interfaces; -using PluginManager.Others; namespace MusicCommands { @@ -19,7 +18,7 @@ namespace MusicCommands public bool canUseDM => false; - public bool canUseServer => true; + public bool canUseServer => false; public bool requireAdmin => false; diff --git a/MyCommandsLibrary/Class1.cs b/MyCommandsLibrary/Class1.cs new file mode 100644 index 0000000..2c93427 --- /dev/null +++ b/MyCommandsLibrary/Class1.cs @@ -0,0 +1,7 @@ +namespace MyCommandsLibrary +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/MyCommandsLibrary/MyCommandsLibrary.csproj b/MyCommandsLibrary/MyCommandsLibrary.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/MyCommandsLibrary/MyCommandsLibrary.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/PluginManager/Others/Exceptions/APIException.cs b/PluginManager/Others/Exceptions/APIException.cs index 881de94..de04a8f 100644 --- a/PluginManager/Others/Exceptions/APIException.cs +++ b/PluginManager/Others/Exceptions/APIException.cs @@ -2,7 +2,11 @@ using System; namespace PluginManager.Others.Exceptions { + /// + /// Custom Exception for PluginManager + /// [Serializable] + public class APIException : Exception { /// diff --git a/PluginManager/Others/Functions.cs b/PluginManager/Others/Functions.cs index 2a09b70..7c5de71 100644 --- a/PluginManager/Others/Functions.cs +++ b/PluginManager/Others/Functions.cs @@ -10,6 +10,9 @@ using System.Threading; namespace PluginManager.Others { + /// + /// A special class with functions + /// public static class Functions { ///