mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fixed missing check for if Rainbet is enabled in the WS version
This commit is contained in:
@@ -126,6 +126,11 @@ public class BotServices
|
||||
private async Task BuildRainbet()
|
||||
{
|
||||
var settings = await SettingsProvider.GetMultipleValuesAsync([BuiltIn.Keys.Proxy, BuiltIn.Keys.RainbetEnabled]);
|
||||
if (!settings[BuiltIn.Keys.RainbetEnabled].ToBoolean())
|
||||
{
|
||||
_logger.Debug("Rainbet is disabled");
|
||||
return;
|
||||
}
|
||||
_rainbet = new RainbetWs(settings[BuiltIn.Keys.Proxy].Value, _cancellationToken);
|
||||
_rainbet.OnRainbetBet += OnRainbetBet;
|
||||
await _rainbet.RefreshCookies();
|
||||
|
||||
Reference in New Issue
Block a user