Don't allow brand new gamblers to participate in a rain

This commit is contained in:
barelyprofessional
2026-03-11 20:09:26 -05:00
parent 945fac3c50
commit 9f9bdee61d

View File

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