feat: add config option to run silently (no logs, no commands, but doing everything else needed for logging)

This commit is contained in:
sam 2024-10-25 16:18:27 +02:00
parent f7f88ff98f
commit 33b78a7ac5
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
5 changed files with 100 additions and 1 deletions

View file

@ -204,6 +204,11 @@ public static class StartupExtensions
var config = scope.ServiceProvider.GetRequiredService<Config>();
var slashService = scope.ServiceProvider.GetRequiredService<SlashService>();
if (config.Discord.TestMode)
logger.Warning(
"Catalogger is running in test mode. This means no logs will be sent and no commands will be responded to."
);
if (config.Discord.ApplicationId == 0)
{
logger.Warning(