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";