mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] KarmaMode now actually changes smth
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using Kruzya.TelegramBot.Core;
|
||||
using Kruzya.TelegramBot.Core.Options;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
using Kruzya.TelegramBot.Core.Service;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
@@ -21,7 +21,7 @@ public class Reputation : Module
|
||||
var dsn = Configuration.GetConnectionString("Reputation");
|
||||
services.AddDbContext<ReputationContext>(options => options.UseMySql(dsn, ServerVersion.AutoDetect(dsn)));
|
||||
|
||||
services.AddOption<KarmaMode>();
|
||||
services.AddScoped<IReputation, ReputationService>();
|
||||
services.AddScoped<IOption, KarmaMode>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user