From a1bd9bf0389cfafa8867daa2d53e8f7956edd57e Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sun, 3 Nov 2024 00:08:52 +0100 Subject: [PATCH] oops --- src/commands/fun/gelbooru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index b69d2ec..98c539a 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -153,7 +153,7 @@ module.exports = { if (post.booru.domain == "gelbooru.com" && post.rating == "s") post.rating = "q"; - const fileName = (post.rating != "g" ? "SPOILER_" : "") + basename(post.fileUrl); + const fileName = (!["g", "s"].includes(post.rating) ? "SPOILER_" : "") + basename(post.fileUrl); const ext = extname(fileName).toLowerCase(); const leadingDescription = [