[entertainment] move roll handler to correct namespace, adjust some numbers

This commit is contained in:
Andriy
2022-12-14 11:50:02 +02:00
parent 4f89be554a
commit 9a957af5ac
@@ -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);
}