feat: add config option to run silently (no logs, no commands, but doing everything else needed for logging)
This commit is contained in:
parent
f7f88ff98f
commit
33b78a7ac5
5 changed files with 100 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue