From 4a609a860810dcc1151c906d63aa1c5c4937e824 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Fri, 11 Oct 2024 14:15:30 +0200 Subject: [PATCH 1/2] oopsies --- 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 d331e0b..8d29ab6 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -151,7 +151,7 @@ module.exports = { var post = (await Booru.search(booru, searchTags, { limit: 1, random: true, credentials: credentials[booru] ?? null }))[0]; if (post == null) { - await interaction.followUp("<:warning:1293874152150667315> Could not find any post matching tags."); + await interaction.followUp(emojis.warning + " Could not find any post matching tags."); return; } From 9851e43841ae72040ef316696382942f379034de Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Fri, 11 Oct 2024 14:33:01 +0200 Subject: [PATCH 2/2] guh --- config/emojis.example.json | 1 + src/commands/fun/gelbooru.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/emojis.example.json b/config/emojis.example.json index 49592e7..e1c1c77 100644 --- a/config/emojis.example.json +++ b/config/emojis.example.json @@ -1,4 +1,5 @@ { + "warning": "<:warning:1293874152150667315>", "booru": { "rating": { "safe": "<:rating_safe:1293819920978804829>", diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index 8d29ab6..504723e 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -147,8 +147,6 @@ module.exports = { const searchTags = [rating, ...tags, ...[...blacklist, ...userBlacklist].map(i => "-" + i)]; const startTime = process.hrtime.bigint(); - console.log(searchTags); - var post = (await Booru.search(booru, searchTags, { limit: 1, random: true, credentials: credentials[booru] ?? null }))[0]; if (post == null) { await interaction.followUp(emojis.warning + " Could not find any post matching tags.");