Code formatting and renamed DBCommandExecutingArguments to DbCommandExecutingArguments

This commit is contained in:
2024-02-24 23:22:02 +02:00
parent cc355d7d4f
commit 196fb6d3d1
19 changed files with 31 additions and 155 deletions

View File

@@ -1,13 +1,12 @@
using System.Linq;
using Discord.Commands;
using Discord.Commands;
using Discord.WebSocket;
using PluginManager.Bot;
namespace PluginManager.Others;
public class DBCommandExecutingArguments
public class DbCommandExecutingArguments
{
public DBCommandExecutingArguments(
public DbCommandExecutingArguments(
SocketCommandContext context, string cleanContent, string commandUsed, string[]? arguments)
{
this.context = context;
@@ -16,7 +15,7 @@ public class DBCommandExecutingArguments
this.arguments = arguments;
}
public DBCommandExecutingArguments(SocketUserMessage? message, DiscordSocketClient client)
public DbCommandExecutingArguments(SocketUserMessage? message, DiscordSocketClient client)
{
this.context = new SocketCommandContext(client, message);
int pos = 0;

View File

@@ -1,16 +1,5 @@
namespace PluginManager.Others;
/// <summary>
/// A list of operating systems
/// </summary>
public enum OperatingSystem
{
WINDOWS,
LINUX,
MAC_OS,
UNKNOWN
}
/// <summary>
/// The output log type
/// </summary>
@@ -39,9 +28,3 @@ public enum InternalActionRunType
ON_STARTUP,
ON_CALL
}
internal enum ExceptionExitCode: int
{
CONFIG_FAILED_TO_LOAD = 1,
CONFIG_KEY_NOT_FOUND = 2,
}

View File

@@ -29,18 +29,6 @@ public static class Functions
}
}
/// <summary>
/// Get the Operating system you are runnin on
/// </summary>
/// <returns>An Operating system</returns>
public static OperatingSystem GetOperatingSystem()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return OperatingSystem.WINDOWS;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) return OperatingSystem.LINUX;
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) return OperatingSystem.MAC_OS;
return OperatingSystem.UNKNOWN;
}
/// <summary>
/// Copy one Stream to another <see langword="async" />
/// </summary>