kasino shop updated all chat message id to uuid (#95)

* Update KasinoMines.cs

* Update SlotsCommand.cs

* Update MinesCommand.cs

* Update PlinkoCommand.cs

* Update PlinkoCommand.cs

* Update PlinkoCommand.cs

* Update PlanesCommand.cs

* Update LimboCommand.cs

* Update KenoCommand.cs

* Update KasinoUserCommands.cs

* Update KasinoRain.cs

* Create KasinoShop.cs

* Create ShopCommands.cs

* Update BotServices.cs

* Update MoneyDbModels.cs
This commit is contained in:
alogindtractor
2026-03-14 15:09:48 -07:00
committed by GitHub
parent af7b5e027b
commit 377603ca35
13 changed files with 3624 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
using System.Text.Json;
using KfChatDotNetBot.Commands.Kasino;
using KfChatDotNetBot.Extensions;
using KfChatDotNetBot.Models.DbModels;
using KfChatDotNetBot.Settings;
@@ -119,6 +120,16 @@ public class KasinoRain : IDisposable
participantNames.Add(gambler.User.FormatUsername());
await Money.ModifyBalanceAsync(gambler.Id, payout, TransactionSourceEventType.Rain,
"Payout from rain event", creator.Id, _ct);
//KasinoShop stuff -------------------------------------------------------------------------
if (_kfChatBot.BotServices.KasinoShop != null)
{
await GlobalShopFunctions.CheckProfile(_kfChatBot, gambler.User, gambler);
await using var db = new ApplicationDbContext();
var creatorGambler = await db.Gamblers.FirstOrDefaultAsync(x => x.Id == creator.Id, _ct);
await _kfChatBot.BotServices.KasinoShop.ProcessJuicerOrRainTracking(creatorGambler!, gambler,
payout);
}
//-----------------------------------------------------------------------------------------
}
await Money.ModifyBalanceAsync(creator.Id, -rain.RainAmount + failedPayoutAmount, TransactionSourceEventType.Rain,