mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[core] move message auto-delete service from code-watcher to core
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
using System.Collections.Concurrent;
|
||||
using Kruzya.TelegramBot.Core;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Kruzya.TelegramBot.Core;
|
||||
|
||||
namespace West.TelegramBot.CodeWatcher
|
||||
{
|
||||
public class CodeWatcher : Module
|
||||
{
|
||||
public CodeWatcher(Core core) : base(core) {}
|
||||
|
||||
public override void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<ConcurrentBag<DeleteRequest>>();
|
||||
services.AddHostedService<DeleteService>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user