diff --git a/modules/Entertainment/Handler/Guess.cs b/modules/Entertainment/Handler/Guess.cs index 0ecd558..63e265f 100644 --- a/modules/Entertainment/Handler/Guess.cs +++ b/modules/Entertainment/Handler/Guess.cs @@ -35,11 +35,11 @@ public class Guess : CommonHandler { var cooldownOption = await _db.UserValues.FindOrCreateOption(Chat.Id, From.Id, "guessCooldown"); var cooldown = cooldownOption.GetValue(); - // if (cooldown > DateTime.Now) - // { - // await Reply($"Следующее использование через {cooldown - DateTime.Now:hh\\:mm\\:ss}."); - // return; - // } + if (cooldown > DateTime.Now) + { + await Reply($"Следующее использование через {cooldown - DateTime.Now:hh\\:mm\\:ss}."); + return; + } var guessDict = _guessCache.GetOr(Chat.Id, new ConcurrentDictionary());