Made it possible to disable Rainbet, Chips.gg and Howl.gg as they're not really working right now and just spamming errors

This commit is contained in:
barelyprofessional
2025-01-21 20:17:46 +08:00
parent 75f788f0f6
commit b7e829d30a
3 changed files with 53 additions and 7 deletions

View File

@@ -36,6 +36,12 @@ public class Rainbet : IDisposable
using var timer = new PeriodicTimer(_gameHistoryInterval);
while (await timer.WaitForNextTickAsync(_gameHistoryCts.Token))
{
var enabled = await Helpers.GetValue(BuiltIn.Keys.RainbetEnabled);
if (!enabled.ToBoolean())
{
_logger.Debug("Rainbet is disabled");
continue;
};
try
{
_logger.Info($"Retrieving game history from Rainbet, last success: {LastSuccessfulRefresh:yyyy-MM-dd HH:mm:ss}");