mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
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:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user