add new fortune

This commit is contained in:
13xforever
2025-10-15 11:10:16 +05:00
parent 880048eeee
commit 0435a97715
3 changed files with 5 additions and 1 deletions

View File

@@ -842,3 +842,6 @@ Your work interests can capture the highest status or prestige.
%
Slow motion better than no motion.
%
The statistical probability of a crocodile attack is much higher in areas with native crocodile populations. I do not suggest immigration to these areas.
-- Varna Interstellar Flight AI management System Nos-C71897 Demeter Unit 22.11.31.6
%

View File

@@ -76,7 +76,7 @@ internal static class Fortune
if (line is "%" or null)
{
var newFortune = buf.ToString().Replace("\r\n", "\n").Trim();
if (newFortune.Length > 200)
if (newFortune.Length > Config.MaxFortuneLength)
{
buf.Clear();
skipped++;

View File

@@ -75,6 +75,7 @@ internal static class Config
public static int FunMultiplier => config.GetValue(nameof(FunMultiplier), 1);
public static int MaxPositionsForHwSurveyResults => config.GetValue(nameof(MaxPositionsForHwSurveyResults), 10);
public static int MinLogThreads => config.GetValue(nameof(MinLogThreads), 1);
public static int MaxFortuneLength => config.GetValue(nameof(MaxFortuneLength), 300);
public static string Token => config.GetValue(nameof(Token), "");
public static string AzureDevOpsToken => config.GetValue(nameof(AzureDevOpsToken), "");