Merge pull request 'dev' (#4) from dev into mistress

Reviewed-on: https://git.incest.world/sisterkissers/discord-bot/pulls/4
This commit is contained in:
Ashley Graves 2024-10-11 12:33:14 +00:00
commit 887f733574
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{
"warning": "<:warning:1293874152150667315>",
"booru": {
"rating": {
"safe": "<:rating_safe:1293819920978804829>",

View file

@ -147,11 +147,9 @@ 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("<:warning:1293874152150667315> Could not find any post matching tags.");
await interaction.followUp(emojis.warning + " Could not find any post matching tags.");
return;
}