mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added option to disable DLive since it has shutdown
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user