From c50c5dcd85de14af30a7ef98804582ee3864b245 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Thu, 20 Jun 2024 00:51:32 +0800 Subject: [PATCH] Slightly smarter red text --- KfChatDotNetKickBot/KickBot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KfChatDotNetKickBot/KickBot.cs b/KfChatDotNetKickBot/KickBot.cs index 155144b..fbfd1f6 100644 --- a/KfChatDotNetKickBot/KickBot.cs +++ b/KfChatDotNetKickBot/KickBot.cs @@ -16,7 +16,7 @@ public class KickBot private readonly ChatClient _kfClient; private readonly KickWsClient.KickWsClient _kickClient; private readonly Logger _logger = LogManager.GetCurrentClassLogger(); - private readonly Models.ConfigModel _config; + private readonly ConfigModel _config; private readonly bool _pingEnabled = true; private bool _gambaSeshPresent; private string _xfSessionToken = null!; @@ -133,7 +133,7 @@ public class KickBot } var payoutColor = "green"; - if (bet.Payout == "0") payoutColor = "red"; + if (float.Parse(bet.Payout) < float.Parse(bet.Amount)) payoutColor = "red"; // There will be a check for live status but ignoring that while we deal with an emergency dice situation _sendChatMessage($"🚨🚨 {bet.Username} just bet {bet.Amount} {bet.Currency} which paid out [color={payoutColor}]{bet.Payout} {bet.Currency}[/color] ({bet.Multiplier}x) on {bet.GameName} 💰💰", true); }