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 = [