Experimental convoluted rain refactor to use Redis instead of semaphores

This commit is contained in:
barelyprofessional
2026-01-28 00:40:01 -06:00
parent 9a7762a933
commit 65b7b19b8a
5 changed files with 245 additions and 199 deletions

View File

@@ -40,6 +40,7 @@ public class BotServices
private Owncast? _owncastStatusCheck;
private ShuffleDotUs? _shuffleDotUs;
private YouTubePubSub? _youTubePubSub;
public KasinoRain? KasinoRain;
private Task? _websocketWatchdog;
private Task? _howlggGetUserTimer;
@@ -91,7 +92,8 @@ public class BotServices
BuildPeerTubeLiveStatusCheck(),
BuildOwncastLiveStatusCheck(),
BuildShuffleDotUs(),
BuildYouTubePubSub()
BuildYouTubePubSub(),
BuildKasinoRain()
];
try
{
@@ -107,6 +109,12 @@ public class BotServices
_websocketWatchdog = WebsocketWatchdog();
_howlggGetUserTimer = HowlggGetUserTimer();
}
private async Task BuildKasinoRain()
{
_logger.Debug("Building the Kasino Rain thingy");
KasinoRain = new KasinoRain(_chatBot, _cancellationToken);
}
private async Task BuildShuffle()
{