This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 16.0.31729.503
|
VisualStudioVersion = 17.1.32414.318
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DiscordBot", "DiscordBot\DiscordBot.csproj", "{087E64F4-1E1C-4899-8223-295356C9894A}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DiscordBot", "DiscordBot\DiscordBot.csproj", "{087E64F4-1E1C-4899-8223-295356C9894A}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -37,6 +37,15 @@ namespace MusicCommands
|
|||||||
|
|
||||||
public async Task StartSendAudioFromLink(string URL)
|
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();
|
Stream ms = new MemoryStream();
|
||||||
int bsize = 512;
|
int bsize = 512;
|
||||||
new Thread(async delegate (object o)
|
new Thread(async delegate (object o)
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ using Discord.WebSocket;
|
|||||||
using Discord;
|
using Discord;
|
||||||
|
|
||||||
using PluginManager.Interfaces;
|
using PluginManager.Interfaces;
|
||||||
using PluginManager.Others;
|
|
||||||
|
|
||||||
namespace MusicCommands
|
namespace MusicCommands
|
||||||
{
|
{
|
||||||
@@ -19,7 +18,7 @@ namespace MusicCommands
|
|||||||
|
|
||||||
public bool canUseDM => false;
|
public bool canUseDM => false;
|
||||||
|
|
||||||
public bool canUseServer => true;
|
public bool canUseServer => false;
|
||||||
|
|
||||||
public bool requireAdmin => false;
|
public bool requireAdmin => false;
|
||||||
|
|
||||||
|
|||||||
7
MyCommandsLibrary/Class1.cs
Normal file
7
MyCommandsLibrary/Class1.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace MyCommandsLibrary
|
||||||
|
{
|
||||||
|
public class Class1
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
9
MyCommandsLibrary/MyCommandsLibrary.csproj
Normal file
9
MyCommandsLibrary/MyCommandsLibrary.csproj
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -2,7 +2,11 @@ using System;
|
|||||||
|
|
||||||
namespace PluginManager.Others.Exceptions
|
namespace PluginManager.Others.Exceptions
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom Exception for PluginManager
|
||||||
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
|
||||||
public class APIException : Exception
|
public class APIException : Exception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ using System.Threading;
|
|||||||
|
|
||||||
namespace PluginManager.Others
|
namespace PluginManager.Others
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A special class with functions
|
||||||
|
/// </summary>
|
||||||
public static class Functions
|
public static class Functions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user