diff --git a/src/NadekoBot/Modules/NSFW/NSFW.cs b/src/NadekoBot/Modules/NSFW/NSFW.cs index 3585e7ef..7c692f0b 100644 --- a/src/NadekoBot/Modules/NSFW/NSFW.cs +++ b/src/NadekoBot/Modules/NSFW/NSFW.cs @@ -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] diff --git a/src/NadekoBot/Services/Impl/StatsService.cs b/src/NadekoBot/Services/Impl/StatsService.cs index a4c91a59..c767ecec 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -25,9 +25,7 @@ namespace NadekoBot.Services.Impl public int TextChannels => client.GetGuilds().SelectMany(g => g.Channels.Where(c => c is ITextChannel)).Count(); public int VoiceChannels => client.GetGuilds().SelectMany(g => g.Channels.Where(c => c is IVoiceChannel)).Count(); public string OwnerIds => string.Join(", ", NadekoBot.Credentials.OwnerIds); - - - + Timer carbonitexTimer { get; } public StatsService(ShardedDiscordClient client, CommandHandler cmdHandler)