From 8c06df9110f71964cca258460fdc266f76057c49 Mon Sep 17 00:00:00 2001 From: Andrei Tudor Date: Tue, 27 Feb 2024 11:09:28 +0200 Subject: [PATCH] Removed help app --- DatabaseCreator/DatabaseCreator.csproj | 14 ------ DatabaseCreator/Program.cs | 70 -------------------------- SethDiscordBot.sln | 6 --- 3 files changed, 90 deletions(-) delete mode 100644 DatabaseCreator/DatabaseCreator.csproj delete mode 100644 DatabaseCreator/Program.cs diff --git a/DatabaseCreator/DatabaseCreator.csproj b/DatabaseCreator/DatabaseCreator.csproj deleted file mode 100644 index 438539f..0000000 --- a/DatabaseCreator/DatabaseCreator.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - diff --git a/DatabaseCreator/Program.cs b/DatabaseCreator/Program.cs deleted file mode 100644 index 1d55a8d..0000000 --- a/DatabaseCreator/Program.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System.Diagnostics; -using PluginManager; -using PluginManager.Online.Helpers; -using PluginManager.Others; -using PluginManager.Plugin; - -if (args.Length == 1) -{ - var result = await JsonManager.ConvertFromJson(args[0]); - // print all rows - Console.WriteLine($"Name: {result.Name}"); - Console.WriteLine($"Version: {result.Version.ToShortString()}"); - Console.WriteLine($"Description: {result.Description}"); - Console.WriteLine($"Download link: {result.DownLoadLink}"); - Console.WriteLine( - $"Supported OS: {((result.SupportedOS & OSType.WINDOWS) != 0 ? "Windows" : "")} {((result.SupportedOS & OSType.LINUX) != 0 ? "Linux" : "")} {((result.SupportedOS & OSType.MACOSX) != 0 ? "MacOSX" : "")}" - ); - Console.WriteLine($"Has dependencies: {result.HasDependencies}"); - Console.WriteLine($"Dependencies: {result.Dependencies.Count}"); - - return; -} - - -var _levelingSystem = new PluginOnlineInfo( - "Leveling System", - new PluginVersion(0, 0, 1), - "A simple leveling system for your server", - "https://github.com/andreitdr/SethPlugins/raw/releases/LevelingSystem/LevelingSystem.dll", - OSType.WINDOWS | OSType.LINUX -); - -var _musicPlayerWindows = new PluginOnlineInfo( - "Music Player (Windows)", new PluginVersion(0, 0, 1), - "A simple music player for your server", - "https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/MusicPlayer.dll", - OSType.WINDOWS, - [ - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/windows/ffmpeg.exe", "ffmpeg.exe"), - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/windows/libopus.dll", "libopus.dll"), - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/windows/libsodium.dll", "libsodium.dll"), - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/windows/opus.dll", "opus.dll"), - new OnlineDependencyInfo("https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_x86.exe", "yt-dlp.exe") - ] -); - -var _musicPlayerLINUX = new PluginOnlineInfo( - "Music Player (Linux)", new PluginVersion(0, 0, 1), - "A simple music player for your server", - "https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/MusicPlayer.dll", - OSType.LINUX, - [ - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/linux/ffmpeg", "ffmpeg"), - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/linux/libopus.so", "libopus.so"), - new OnlineDependencyInfo("https://github.com/andreitdr/SethPlugins/raw/releases/MusicPlayer/libs/linux/libsodium.so", "libsodium.so"), - new OnlineDependencyInfo("https://github.com/yt-dlp/yt-dlp/releases/download/2023.10.13/yt-dlp", "yt-dlp") - ] -); - -List plugins = -[ - _levelingSystem, - _musicPlayerWindows, - _musicPlayerLINUX -]; - -Directory.CreateDirectory("output"); -await JsonManager.SaveToJsonFile("./output/PluginsList.json", plugins); - -Process.Start("notepad.exe", "./output/PluginsList.json"); diff --git a/SethDiscordBot.sln b/SethDiscordBot.sln index f855e4a..a8d9f43 100644 --- a/SethDiscordBot.sln +++ b/SethDiscordBot.sln @@ -15,8 +15,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LevelingSystem", "..\SethPl EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonCompatibilityLayer", "..\SethPlugins\PythonCompatibilityLayer\PythonCompatibilityLayer.csproj", "{81ED4953-13E5-4950-96A8-8CEF5FD59559}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DatabaseCreator", "DatabaseCreator\DatabaseCreator.csproj", "{D9BC7451-74A4-4FB3-86CC-A59F6DB889B4}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,10 +41,6 @@ Global {81ED4953-13E5-4950-96A8-8CEF5FD59559}.Debug|Any CPU.Build.0 = Debug|Any CPU {81ED4953-13E5-4950-96A8-8CEF5FD59559}.Release|Any CPU.ActiveCfg = Release|Any CPU {81ED4953-13E5-4950-96A8-8CEF5FD59559}.Release|Any CPU.Build.0 = Release|Any CPU - {D9BC7451-74A4-4FB3-86CC-A59F6DB889B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D9BC7451-74A4-4FB3-86CC-A59F6DB889B4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D9BC7451-74A4-4FB3-86CC-A59F6DB889B4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D9BC7451-74A4-4FB3-86CC-A59F6DB889B4}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE