Added option to disable DLive since it has shutdown

This commit is contained in:
barelyprofessional
2026-05-01 21:13:26 -05:00
parent 972e880aa9
commit cf62274b4b
2 changed files with 6 additions and 2 deletions

View File

@@ -390,12 +390,13 @@ public class BotServices
_logger.Info("Built the almanac shill task");
}
private Task BuildDLiveStatusCheck()
private async Task BuildDLiveStatusCheck()
{
var enabled = (await SettingsProvider.GetValueAsync(BuiltIn.Keys.DLiveEnabled)).ToBoolean();
if (!enabled) return;
_dliveStatusCheck = new DLive(_chatBot);
_dliveStatusCheck.StartLiveStatusCheck();
_logger.Info("Built the DLive livestream status check task");
return Task.CompletedTask;
}
private Task BuildPeerTubeLiveStatusCheck()

View File

@@ -586,6 +586,9 @@ public static class BuiltIn
public static string WinnaBmjUsername = "Winna.BmjUsername";
[BuiltInSetting("Array of cookies as a shitty hack to get Winna going", SettingValueType.Array, "[]")]
public static string WinnaCookies = "Winna.Cookies";
[BuiltInSetting("Whether the DLive livestream check is enabled", SettingValueType.Boolean, "false",
BooleanRegex)]
public static string DLiveEnabled = "DLive.Enabled";
}
}