Forgot to build the Parti service

This commit is contained in:
barelyprofessional
2025-07-09 23:39:24 -05:00
parent d22138a9f9
commit 6a7453a44f

View File

@@ -80,7 +80,8 @@ public class BotServices
BuildAlmanacShill(),
BuildBetBolt(),
BuildYeet(),
BuildRainbet()
BuildRainbet(),
BuildParti()
];
try
{
@@ -317,7 +318,7 @@ public class BotServices
var settings = await SettingsProvider.GetMultipleValuesAsync([
BuiltIn.Keys.KickEnabled, BuiltIn.Keys.HowlggEnabled, BuiltIn.Keys.ChipsggEnabled,
BuiltIn.Keys.ClashggEnabled, BuiltIn.Keys.BetBoltEnabled, BuiltIn.Keys.YeetEnabled,
BuiltIn.Keys.RainbetEnabled
BuiltIn.Keys.RainbetEnabled, BuiltIn.Keys.PartiEnabled
]);
try
{
@@ -416,6 +417,14 @@ public class BotServices
_rainbet = null!;
await BuildRainbet();
}
if (settings[BuiltIn.Keys.PartiEnabled].ToBoolean() && _parti != null && !_parti.IsConnected())
{
_logger.Error("Parti died, recreating it");
_parti.Dispose();
_parti = null!;
await BuildParti();
}
}
catch (Exception e)
{