diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-20 07:50:47 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-20 07:50:47 -0500 |
| commit | 73a54cb7d47ba76274aac8908126cccb9fa3cb6b (patch) | |
| tree | 85b61c947b859f01706720bb42901aae65cca956 /src | |
| parent | cb11b625b7ad9fa9d1d2221cdda0b97476c2fd9c (diff) | |
| download | slskd-73a54cb7d47ba76274aac8908126cccb9fa3cb6b.tar.gz | |
randomize logos
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Program.cs | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 8869f441..85a56e0f 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -224,11 +224,6 @@ namespace slskd return; } - if (!Options.NoLogo) - { - PrintLogo(Version); - } - Log.Logger = (Options.Debug ? new LoggerConfiguration().MinimumLevel.Debug() : new LoggerConfiguration().MinimumLevel.Information()) .MinimumLevel.Override("Microsoft", LogEventLevel.Warning) .MinimumLevel.Override("slskd.API.Authentication.PassthroughAuthenticationHandler", LogEventLevel.Information) @@ -253,6 +248,11 @@ namespace slskd var logger = Log.ForContext(typeof(Program)); + if (!Options.NoLogo) + { + PrintLogo(Version); + } + if (ConfigurationFile != DefaultConfigurationFile && !File.Exists(ConfigurationFile)) { logger.Warning($"Specified configuration file '{ConfigurationFile}' could not be found and was not loaded."); @@ -455,11 +455,24 @@ namespace slskd var centeredVersion = new string(' ', paddingLeft) + version + new string(' ', paddingRight); - var banner = @$" + var logos = new[] + { + $@" ▄▄▄▄ ▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄▄ █ █ ▄▄▄▄▄▄▄ █ █▄▄▄ ▄▄▄█ █ █__ --█ █ █ █__ --█ █ ◄█ █ - █ - █▄▄▄▄▄█ █▄▄█ █▄▄▄▄▄█ █▄▄█▄▄█ █▄▄▄▄▄█ + █▄▄▄▄▄█ █▄▄█ █▄▄▄▄▄█ █▄▄█▄▄█ █▄▄▄▄▄█", + @$" + ▄▄▄▄ ▄▄▄▄ ▄▄▄▄ + ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █ + █__ --█ █__ --█ ◄█ - █ + █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█", + }; + + var logo = logos[new Random().Next(0, logos.Length)]; + + var banner = @$" +{logo} ╒════════════════════════════════════════════════════════╕ │ GNU AFFERO GENERAL PUBLIC LICENSE │ │ https://slskd.org │ |
