mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[entertainment] move roll handler to correct namespace, adjust some numbers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user