diff --git a/.gitignore b/.gitignore index add3252..07c8e23 100644 --- a/.gitignore +++ b/.gitignore @@ -362,3 +362,5 @@ MigrationBackup/ # Fody - auto-generated XML schema FodyWeavers.xsd + +ImportDllFromWebsiteDynamically.txt \ No newline at end of file diff --git a/BUILDS/net6.0/PluginManager.dll b/BUILDS/net6.0/PluginManager.dll index 90dfd5a..9671e1e 100644 Binary files a/BUILDS/net6.0/PluginManager.dll and b/BUILDS/net6.0/PluginManager.dll differ diff --git a/DiscordBot/Program.cs b/DiscordBot/Program.cs index 8836669..94e7cdc 100644 --- a/DiscordBot/Program.cs +++ b/DiscordBot/Program.cs @@ -2,10 +2,15 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net.Http; +using System.Reflection; +using System.Runtime.Loader; using System.Threading; using System.Threading.Tasks; +using Discord.WebSocket; using DiscordBot.Discord.Core; using PluginManager; +using PluginManager.Interfaces; using PluginManager.Items; using PluginManager.Online; using PluginManager.Others; @@ -179,8 +184,11 @@ public class Program if (len > 0 && (args.Contains("--cmd") || args.Contains("--args") || args.Contains("--nomessage"))) { - if (args.Contains("lp") || args.Contains("loadplugins")) loadPluginsOnStartup = true; - if (args.Contains("listplugs")) listPluginsAtStartup = true; + if (args.Contains("lp") || args.Contains("loadplugins")) + loadPluginsOnStartup = true; + if (args.Contains("listplugs")) + listPluginsAtStartup = true; + len = 0; } @@ -188,6 +196,7 @@ public class Program if (len == 0 || (args[0] != "--exec" && args[0] != "--execute")) { var b = await StartNoGUI(); + Thread mainThread = new Thread(() => NoGUI(b)); mainThread.Start(); return;