atfbooru removed, has some questionable material to say the least

This commit is contained in:
Kwoth 2016-11-18 16:36:54 +01:00
parent 5f797a9a60
commit fde76b6808

View File

@ -32,7 +32,7 @@ namespace NadekoBot.Modules.NSFW
var rng = new NadekoRandom(); var rng = new NadekoRandom();
Task<string> provider = Task.FromResult(""); Task<string> provider = Task.FromResult("");
switch (rng.Next(0,5)) switch (rng.Next(0,4))
{ {
case 0: case 0:
provider = GetDanbooruImageLink(tag); provider = GetDanbooruImageLink(tag);
@ -41,12 +41,9 @@ namespace NadekoBot.Modules.NSFW
provider = GetGelbooruImageLink(tag); provider = GetGelbooruImageLink(tag);
break; break;
case 2: case 2:
provider = GetATFbooruImageLink(tag);
break;
case 3:
provider = GetKonachanImageLink(tag); provider = GetKonachanImageLink(tag);
break; break;
case 4: case 3:
provider = GetYandereImageLink(tag); provider = GetYandereImageLink(tag);
break; break;
default: default:
@ -83,20 +80,6 @@ namespace NadekoBot.Modules.NSFW
await channel.SendMessageAsync(String.Join("\n\n", links)).ConfigureAwait(false); await channel.SendMessageAsync(String.Join("\n\n", links)).ConfigureAwait(false);
} }
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ATFbooru(IUserMessage umsg, [Remainder] string tag = null)
{
var channel = (ITextChannel)umsg.Channel;
tag = tag?.Trim() ?? "";
var link = await GetATFbooruImageLink(tag).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(link))
await channel.SendMessageAsync("Search yielded no results ;(").ConfigureAwait(false);
else
await channel.SendMessageAsync(link).ConfigureAwait(false);
}
public static async Task<string> GetYandereImageLink(string tag) public static async Task<string> GetYandereImageLink(string tag)
{ {
var rng = new NadekoRandom(); var rng = new NadekoRandom();