diff --git a/NadekoBot.Core/Services/Impl/ImagesService.cs b/NadekoBot.Core/Services/Impl/ImagesService.cs index 50d432a8..8c8c0128 100644 --- a/NadekoBot.Core/Services/Impl/ImagesService.cs +++ b/NadekoBot.Core/Services/Impl/ImagesService.cs @@ -9,6 +9,7 @@ namespace NadekoBot.Core.Services.Impl //todo move everything to redis public class ImagesService : IImagesService { + private readonly IDataCache _cache; private readonly Logger _log; private const string _basePath = "data/images/"; @@ -51,10 +52,14 @@ namespace NadekoBot.Core.Services.Impl public ImmutableArray Rip { get; private set; } public ImmutableArray FlowerCircle { get; private set; } - public ImagesService() + public ImagesService(IDataCache cache, int shardId) { + _cache = cache; _log = LogManager.GetCurrentClassLogger(); - this.Reload(); + if (shardId == 0) + { + this.Reload(); + } } public void Reload()