mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
- fixed remote coordinator being initialized when local one is supposed to be used
- Fixed services loading multiple times - cleaned up service adding with scrutor - INService moved from some interfaces to concrete implementation
This commit is contained in:
@@ -11,7 +11,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public sealed class BehaviorExecutor : IBehaviourExecutor
|
||||
public sealed class BehaviorExecutor : IBehaviourExecutor, INService
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
private IEnumerable<ILateExecutor> _lateExecutors;
|
||||
|
@@ -12,7 +12,7 @@ using NadekoBot.Modules.Gambling.Services;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class CurrencyService : ICurrencyService
|
||||
public class CurrencyService : ICurrencyService, INService
|
||||
{
|
||||
private readonly DbService _db;
|
||||
private readonly GamblingConfigService _gss;
|
||||
|
@@ -18,7 +18,7 @@ using Serilog;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class GoogleApiService : IGoogleApiService
|
||||
public class GoogleApiService : IGoogleApiService, INService
|
||||
{
|
||||
private const string SearchEngineId = "018084019232060951019:hs5piey28-e";
|
||||
|
||||
|
@@ -11,7 +11,7 @@ using NadekoBot.Modules.Administration;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class Localization : ILocalization
|
||||
public class Localization : ILocalization, INService
|
||||
{
|
||||
private readonly BotConfigService _bss;
|
||||
private readonly DbService _db;
|
||||
|
@@ -12,7 +12,7 @@ using Serilog;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class StatsService : IStatsService
|
||||
public class StatsService : IStatsService, INService
|
||||
{
|
||||
private readonly DiscordSocketClient _client;
|
||||
private readonly IBotCredentials _creds;
|
||||
|
Reference in New Issue
Block a user