mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[entertainment] shutdown roll handler
This commit is contained in:
@@ -17,7 +17,7 @@ public class Roll : CommonHandler
|
|||||||
private readonly IReputation _reputation;
|
private readonly IReputation _reputation;
|
||||||
private readonly UserService _userService;
|
private readonly UserService _userService;
|
||||||
|
|
||||||
[Command(InChat.Public, "roll", CommandParseMode.Both)]
|
// [Command(InChat.Public, "roll", CommandParseMode.Both)]
|
||||||
public async Task HandleRoll()
|
public async Task HandleRoll()
|
||||||
{
|
{
|
||||||
var cdOption = await Db.UserValues.FindOrCreateOption(Chat.Id, From.Id, "rollNextUse");
|
var cdOption = await Db.UserValues.FindOrCreateOption(Chat.Id, From.Id, "rollNextUse");
|
||||||
@@ -38,7 +38,7 @@ public class Roll : CommonHandler
|
|||||||
Db.AddOrUpdate(cdOption);
|
Db.AddOrUpdate(cdOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command(InChat.Public, "reset_roll", CommandParseMode.Both)]
|
// [Command(InChat.Public, "reset_roll", CommandParseMode.Both)]
|
||||||
public async Task HandleResetRoll()
|
public async Task HandleResetRoll()
|
||||||
{
|
{
|
||||||
if (!_userService.IsUserSuper(From))
|
if (!_userService.IsUserSuper(From))
|
||||||
|
|||||||
Reference in New Issue
Block a user