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(), BuildAlmanacShill(),
BuildBetBolt(), BuildBetBolt(),
BuildYeet(), BuildYeet(),
BuildRainbet() BuildRainbet(),
BuildParti()
]; ];
try try
{ {
@@ -317,7 +318,7 @@ public class BotServices
var settings = await SettingsProvider.GetMultipleValuesAsync([ var settings = await SettingsProvider.GetMultipleValuesAsync([
BuiltIn.Keys.KickEnabled, BuiltIn.Keys.HowlggEnabled, BuiltIn.Keys.ChipsggEnabled, BuiltIn.Keys.KickEnabled, BuiltIn.Keys.HowlggEnabled, BuiltIn.Keys.ChipsggEnabled,
BuiltIn.Keys.ClashggEnabled, BuiltIn.Keys.BetBoltEnabled, BuiltIn.Keys.YeetEnabled, BuiltIn.Keys.ClashggEnabled, BuiltIn.Keys.BetBoltEnabled, BuiltIn.Keys.YeetEnabled,
BuiltIn.Keys.RainbetEnabled BuiltIn.Keys.RainbetEnabled, BuiltIn.Keys.PartiEnabled
]); ]);
try try
{ {
@@ -416,6 +417,14 @@ public class BotServices
_rainbet = null!; _rainbet = null!;
await BuildRainbet(); 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) catch (Exception e)
{ {