diff --git a/DiscordBotCore.PluginManagement.Loading/PluginLoader.cs b/DiscordBotCore.PluginManagement.Loading/PluginLoader.cs index 76e80d0..5ce855d 100644 --- a/DiscordBotCore.PluginManagement.Loading/PluginLoader.cs +++ b/DiscordBotCore.PluginManagement.Loading/PluginLoader.cs @@ -38,9 +38,9 @@ public class PluginLoader : IPluginLoader public void SetDiscordClient(DiscordSocketClient discordSocketClient) { - if (_DiscordClient is not null) + if (_DiscordClient is not null && discordSocketClient == _DiscordClient) { - _Logger.Log("A client is already set. Please set the client only once.", this, LogType.Error); + _Logger.Log("A client is already set. Please set the client only once.", this, LogType.Warning); return; } diff --git a/WebUI/Components/Pages/Home.razor b/WebUI/Components/Pages/Home.razor index 9001e0b..58c37b6 100644 --- a/WebUI/Components/Pages/Home.razor +++ b/WebUI/Components/Pages/Home.razor @@ -1,7 +1,122 @@ @page "/" +@using DiscordBotCore.Bot +@using DiscordBotCore.PluginManagement.Loading +@inject IDiscordBotApplication DiscordBotApplication +@inject IPluginLoader PluginLoader +@inject DiscordBotCore.Logging.ILogger Logger +@inject IJSRuntime JS +@rendermode InteractiveServer +