From 9a957af5ac3b3e1cfe08d90c60594d309455ddce Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Wed, 14 Dec 2022 11:50:02 +0200 Subject: [PATCH] [entertainment] move roll handler to correct namespace, adjust some numbers --- modules/Entertainment/{ => Handler}/Roll.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename modules/Entertainment/{ => Handler}/Roll.cs (88%) 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); }