mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added support for Kiwi PeerTube livestream notifications and capturing
This commit is contained in:
@@ -35,6 +35,7 @@ public class BotServices
|
||||
public AlmanacShill? AlmanacShill;
|
||||
private Parti? _parti;
|
||||
private DLive? _dliveStatusCheck;
|
||||
private PeerTube? _peerTubeStatusCheck;
|
||||
|
||||
private Task? _websocketWatchdog;
|
||||
private Task? _howlggGetUserTimer;
|
||||
@@ -83,7 +84,8 @@ public class BotServices
|
||||
BuildYeet(),
|
||||
BuildRainbet(),
|
||||
BuildParti(),
|
||||
BuildDLiveStatusCheck()
|
||||
BuildDLiveStatusCheck(),
|
||||
BuildPeerTubeLiveStatusCheck()
|
||||
];
|
||||
try
|
||||
{
|
||||
@@ -324,6 +326,14 @@ public class BotServices
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private Task BuildPeerTubeLiveStatusCheck()
|
||||
{
|
||||
_peerTubeStatusCheck = new PeerTube(_chatBot);
|
||||
_peerTubeStatusCheck.StartLiveStatusCheck();
|
||||
_logger.Info("Built the PeerTube 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