Fixed ~autohentai

This commit is contained in:
Kwoth
2017-01-03 16:10:46 +01:00
parent 9cd3a16a02
commit 14b0689c8e
2 changed files with 10 additions and 8 deletions

View File

@@ -48,11 +48,15 @@ namespace NadekoBot.Modules.NSFW
}
var link = await provider.ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(link))
await channel.SendErrorAsync("No results found.").ConfigureAwait(false);
else if (!noError)
await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
.WithImageUrl(link)
.WithDescription("Tag: " + tag)).ConfigureAwait(false);
{
if (noError)
await channel.SendErrorAsync("No results found.").ConfigureAwait(false);
return;
}
await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
.WithImageUrl(link)
.WithDescription("Tag: " + tag)).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]