mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Don't allow brand new gamblers to participate in a rain
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user