mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Forgot to build the Parti service
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user