mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Code cleanup
This commit is contained in:
@@ -3,7 +3,6 @@ global using GuessCache = Kruzya.TelegramBot.Core.Cache.MemoryCache<Telegram.Bot
|
||||
|
||||
|
||||
using Kruzya.TelegramBot.Core;
|
||||
using Kruzya.TelegramBot.Core.Options;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using BotFramework;
|
||||
using Castle.Core.Internal;
|
||||
using Kruzya.TelegramBot.Core;
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Guess : CommonHandler
|
||||
{
|
||||
ChatId = Chat.Id,
|
||||
DeleteAt = DateTime.UtcNow.AddSeconds(20),
|
||||
MessageId = Message.MessageId
|
||||
MessageId = Message!.MessageId
|
||||
});
|
||||
|
||||
var cooldownOption = await _db.UserValues.FindOrCreateOption(Chat.Id, From.Id, "guessCooldown");
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
namespace West.Entertainment.Handler;
|
||||
namespace West.Entertainment.Handler;
|
||||
|
||||
public class GuessData
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using BotFramework.Enums;
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kruzya.TelegramBot.Core;
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
@@ -14,7 +13,6 @@ using Kruzya.TelegramBot.Core.AutoDelete;
|
||||
using System.Collections.Concurrent;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
using Telegram.Bot.Types;
|
||||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Kruzya.TelegramBot.Core.Handler;
|
||||
|
||||
namespace West.Entertainment.Handler;
|
||||
@@ -46,7 +44,7 @@ public class Roll : CommonHandler
|
||||
{
|
||||
ChatId = Chat.Id,
|
||||
DeleteAt = DateTime.UtcNow.AddSeconds(20),
|
||||
MessageId = Message.MessageId
|
||||
MessageId = Message!.MessageId
|
||||
});
|
||||
|
||||
if (cd > DateTime.Now)
|
||||
|
||||
Reference in New Issue
Block a user