From bf18fe1de6e9c38c414829083b6a43f791cd72ff Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Wed, 8 Oct 2025 13:28:16 -0500 Subject: [PATCH] Missing calls to NewWagerAsync --- KfChatDotNetBot/Commands/KasinoGambaCommands.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KfChatDotNetBot/Commands/KasinoGambaCommands.cs b/KfChatDotNetBot/Commands/KasinoGambaCommands.cs index d1eb05c..95ca3a2 100644 --- a/KfChatDotNetBot/Commands/KasinoGambaCommands.cs +++ b/KfChatDotNetBot/Commands/KasinoGambaCommands.cs @@ -382,11 +382,13 @@ public class Planes : ICommand { var win = plane.MultiTracker * wager; newBalance = gambler.Balance + win; + await Money.NewWagerAsync(gambler.Id, wager, win, WagerGame.Planes, ct: ctx); await botInstance.SendChatMessageAsync( $"{user.FormatUsername()}, you [color={colors[BuiltIn.Keys.KiwiFarmsGreenColor].Value}]successfully landed with {await win.FormatKasinoCurrencyAsync()} from a total {plane.MultiTracker:N2}x multi![/color]. Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}", true); return; } plane.Crash(); + await Money.NewWagerAsync(gambler.Id, wager, -wager, WagerGame.Planes, ct: ctx); await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, you [color={colors[BuiltIn.Keys.KiwiFarmsGreenColor].Value}]crashed![/color] Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}", true); }