diff --git a/modules/Entertainment/Roll.cs b/modules/Entertainment/Handler/Roll.cs similarity index 88% rename from modules/Entertainment/Roll.cs rename to modules/Entertainment/Handler/Roll.cs index 40bdd93..5e8c717 100644 --- a/modules/Entertainment/Roll.cs +++ b/modules/Entertainment/Handler/Roll.cs @@ -7,7 +7,7 @@ using Kruzya.TelegramBot.Core.Data; using Kruzya.TelegramBot.Core.Extensions; using Kruzya.TelegramBot.Core.Service; -namespace West.Entertainment; +namespace West.Entertainment.Handler; public class Roll : CommonHandler { @@ -25,12 +25,12 @@ public class Roll : CommonHandler return; } - var newRep = new Random().Next(0, 50); + var newRep = new Random().Next(-50, 50); await Reply($"Вы получили {newRep} кармы."); await _reputation.IncrementReputationAsync(Chat, From, newRep); - cdOption.SetValue(DateTime.Now.AddHours(1)); + cdOption.SetValue(DateTime.Now.AddDays(1)); Db.AddOrUpdate(cdOption); }