mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added Owncast support
This commit is contained in:
@@ -37,6 +37,7 @@ public class BotServices
|
||||
private Parti? _parti;
|
||||
private DLive? _dliveStatusCheck;
|
||||
private PeerTube? _peerTubeStatusCheck;
|
||||
private Owncast? _owncastStatusCheck;
|
||||
|
||||
private Task? _websocketWatchdog;
|
||||
private Task? _howlggGetUserTimer;
|
||||
@@ -84,7 +85,8 @@ public class BotServices
|
||||
BuildRainbet(),
|
||||
BuildParti(),
|
||||
BuildDLiveStatusCheck(),
|
||||
BuildPeerTubeLiveStatusCheck()
|
||||
BuildPeerTubeLiveStatusCheck(),
|
||||
BuildOwncastLiveStatusCheck()
|
||||
];
|
||||
try
|
||||
{
|
||||
@@ -334,6 +336,14 @@ public class BotServices
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private Task BuildOwncastLiveStatusCheck()
|
||||
{
|
||||
_owncastStatusCheck = new Owncast(_chatBot);
|
||||
_owncastStatusCheck.StartLiveStatusCheck();
|
||||
_logger.Info("Built the Owncast livestream status check task");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private async Task BuildParti()
|
||||
{
|
||||
var settings = await SettingsProvider.GetMultipleValuesAsync([BuiltIn.Keys.Proxy, BuiltIn.Keys.PartiEnabled]);
|
||||
|
||||
Reference in New Issue
Block a user