Removed the WebUI. Removed the Modules

This commit is contained in:
2024-10-30 23:10:04 +02:00
parent f8df0f0254
commit 9e8bfbbe16
2133 changed files with 120 additions and 15581 deletions

View File

@@ -56,7 +56,7 @@ internal class CommandHandler
}
catch (Exception ex)
{
Application.Logger.LogException(ex, this);
Application.CurrentApplication.Logger.LogException(ex, this);
}
return Task.CompletedTask;
@@ -140,7 +140,7 @@ internal class CommandHandler
DbCommandExecutingArguments cmd = new(context, cleanMessage, split[0], argsClean);
Application.Logger.Log(
Application.CurrentApplication.Logger.Log(
$"User ({context.User.Username}) from Guild \"{context.Guild.Name}\" executed command \"{cmd.CleanContent}\"",
this,
LogType.Info
@@ -152,7 +152,7 @@ internal class CommandHandler
}
catch (Exception ex)
{
Application.Logger.LogException(ex, this);
Application.CurrentApplication.Logger.LogException(ex, this);
}
}
}

View File

@@ -98,7 +98,7 @@ public class DiscordBotApplication
if (arg.Message.Contains("401"))
{
Application.CurrentApplication.ApplicationEnvironmentVariables.Remove("token");
Application.Logger.Log("The token is invalid.", this, LogType.Critical);
Application.CurrentApplication.Logger.Log("The token is invalid.", this, LogType.Critical);
await Application.CurrentApplication.ApplicationEnvironmentVariables.SaveToFile();
}
}
@@ -128,7 +128,7 @@ public class DiscordBotApplication
private Task LoggedIn()
{
Application.Logger.Log("Successfully Logged In", this);
Application.CurrentApplication.Logger.Log("Successfully Logged In", this);
return Task.CompletedTask;
}
@@ -138,12 +138,12 @@ public class DiscordBotApplication
{
case LogSeverity.Error:
case LogSeverity.Critical:
Application.Logger.Log(message.Message, this, LogType.Error);
Application.CurrentApplication.Logger.Log(message.Message, this, LogType.Error);
break;
case LogSeverity.Info:
case LogSeverity.Debug:
Application.Logger.Log(message.Message, this, LogType.Info);
Application.CurrentApplication.Logger.Log(message.Message, this, LogType.Info);
break;