From cf9792f24a84de36bb7a66e6a9ddaa88bf139a27 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 7 Dec 2021 23:44:57 +0100 Subject: [PATCH] Fixed .rule34, closes #320 --- CHANGELOG.md | 5 +++++ .../Modules/Nsfw/Common/Downloaders/Rule34ImageDownloader.cs | 2 +- src/NadekoBot/Modules/Nsfw/Common/Rule34Object.cs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5439c98a2..fff4f65cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o +## Unreleased + +### Fixed +- `.crypto` now supports top 5000 coins + ## [3.0.10] - 01.12.2021 ### Changed diff --git a/src/NadekoBot/Modules/Nsfw/Common/Downloaders/Rule34ImageDownloader.cs b/src/NadekoBot/Modules/Nsfw/Common/Downloaders/Rule34ImageDownloader.cs index 7e2a5576d..880b7a0e6 100644 --- a/src/NadekoBot/Modules/Nsfw/Common/Downloaders/Rule34ImageDownloader.cs +++ b/src/NadekoBot/Modules/Nsfw/Common/Downloaders/Rule34ImageDownloader.cs @@ -24,7 +24,7 @@ namespace NadekoBot.Modules.Nsfw.Common return new(); return images - .Where(img => !string.IsNullOrWhiteSpace(img.Directory) && !string.IsNullOrWhiteSpace(img.Image)) + .Where(img => !string.IsNullOrWhiteSpace(img.Image)) .ToList(); } } diff --git a/src/NadekoBot/Modules/Nsfw/Common/Rule34Object.cs b/src/NadekoBot/Modules/Nsfw/Common/Rule34Object.cs index 153e186a3..eaf465d52 100644 --- a/src/NadekoBot/Modules/Nsfw/Common/Rule34Object.cs +++ b/src/NadekoBot/Modules/Nsfw/Common/Rule34Object.cs @@ -3,7 +3,7 @@ public class Rule34Object : IImageData { public string Image { get; init; } - public string Directory { get; init; } + public int Directory { get; init; } public string Tags { get; init; } public int Score { get; init; }