diff --git a/src/NadekoBot/Modules/Nsfw/Nsfw.cs b/src/NadekoBot/Modules/Nsfw/Nsfw.cs index 009400d41..6ebe77d9a 100644 --- a/src/NadekoBot/Modules/Nsfw/Nsfw.cs +++ b/src/NadekoBot/Modules/Nsfw/Nsfw.cs @@ -4,6 +4,7 @@ using Newtonsoft.Json.Linq; namespace NadekoBot.Modules.Nsfw; +#if !GLOBAL_NADEKO [NoPublicBot] public partial class NSFW : NadekoModule { @@ -436,4 +437,5 @@ public partial class NSFW : NadekoModule .WithFooter( $"{data.Rating} ({data.Provider}) | {string.Join(" | ", data.Tags.Where(x => !string.IsNullOrWhiteSpace(x)).Take(5))}")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/src/NadekoBot/Modules/Utility/Patronage/PatronageService.cs b/src/NadekoBot/Modules/Utility/Patronage/PatronageService.cs index f2a47a620..4ef4afcf0 100644 --- a/src/NadekoBot/Modules/Utility/Patronage/PatronageService.cs +++ b/src/NadekoBot/Modules/Utility/Patronage/PatronageService.cs @@ -35,6 +35,7 @@ public sealed class PatronageService = new($"quota:last_hourly_reset"); private readonly IBotCache _cache; + private readonly IBotCredsProvider _creds; public PatronageService( PatronageConfig pConf, @@ -42,7 +43,8 @@ public sealed class PatronageService DiscordSocketClient client, ISubscriptionHandler subsHandler, IEmbedBuilderService eb, - IBotCache cache) + IBotCache cache, + IBotCredsProvider creds) { _pConf = pConf; _db = db; @@ -50,6 +52,7 @@ public sealed class PatronageService _subsHandler = subsHandler; _eb = eb; _cache = cache; + _creds = creds; } public Task OnReadyAsync() @@ -495,8 +498,8 @@ public sealed class PatronageService if (!confData.IsEnabled) return default; - // if (_creds.IsOwner(userId)) - // return default; + if (_creds.GetCreds().IsOwner(userId)) + return default; // get user tier var patron = await GetPatronAsync(userId);