From 9f9bdee61d8d31ec8e8a438b577bf8bee464e527 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Wed, 11 Mar 2026 20:09:26 -0500 Subject: [PATCH] Don't allow brand new gamblers to participate in a rain --- KfChatDotNetBot/Commands/Kasino/RainCommand.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/KfChatDotNetBot/Commands/Kasino/RainCommand.cs b/KfChatDotNetBot/Commands/Kasino/RainCommand.cs index f9b7e0c..35a5438 100644 --- a/KfChatDotNetBot/Commands/Kasino/RainCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/RainCommand.cs @@ -63,6 +63,12 @@ public class RainCommand : ICommand return; } + if ((DateTimeOffset.UtcNow - gambler.Created).TotalHours < 4) + { + await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, you're too fresh for a rain", true, autoDeleteAfter: cleanupDelay); + return; + } + await botInstance.BotServices.KasinoRain.AddParticipant(user.Id); var pluralSuffix = string.Empty; if (rain.Participants.Count > 0) pluralSuffix = "s";