From 4429687bd567a1c0631333d7a7cd6bb4635cbf35 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 6 Feb 2017 13:00:39 +0100 Subject: [PATCH] public nadeko fix --- src/NadekoBot/Modules/NSFW/NSFW.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/NadekoBot/Modules/NSFW/NSFW.cs b/src/NadekoBot/Modules/NSFW/NSFW.cs index fe81fa49..bd213773 100644 --- a/src/NadekoBot/Modules/NSFW/NSFW.cs +++ b/src/NadekoBot/Modules/NSFW/NSFW.cs @@ -253,8 +253,6 @@ namespace NadekoBot.Modules.NSFW await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false); } } -#if !GLOBAL_NADEKO - public static Task GetE621ImageLink(string tag) => Task.Run(async () => { @@ -278,6 +276,10 @@ namespace NadekoBot.Modules.NSFW } }); + public static Task GetRule34ImageLink(string tag) => + Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34); + +#if !GLOBAL_NADEKO public static Task GetYandereImageLink(string tag) => Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Yandere); @@ -286,9 +288,6 @@ namespace NadekoBot.Modules.NSFW public static Task GetGelbooruImageLink(string tag) => Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Gelbooru); - - public static Task GetRule34ImageLink(string tag) => - Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34); #endif } } \ No newline at end of file