guh
This commit is contained in:
parent
4a609a8608
commit
9851e43841
2 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"warning": "<:warning:1293874152150667315>",
|
||||||
"booru": {
|
"booru": {
|
||||||
"rating": {
|
"rating": {
|
||||||
"safe": "<:rating_safe:1293819920978804829>",
|
"safe": "<:rating_safe:1293819920978804829>",
|
||||||
|
|
|
@ -147,8 +147,6 @@ module.exports = {
|
||||||
const searchTags = [rating, ...tags, ...[...blacklist, ...userBlacklist].map(i => "-" + i)];
|
const searchTags = [rating, ...tags, ...[...blacklist, ...userBlacklist].map(i => "-" + i)];
|
||||||
const startTime = process.hrtime.bigint();
|
const startTime = process.hrtime.bigint();
|
||||||
|
|
||||||
console.log(searchTags);
|
|
||||||
|
|
||||||
var post = (await Booru.search(booru, searchTags, { limit: 1, random: true, credentials: credentials[booru] ?? null }))[0];
|
var post = (await Booru.search(booru, searchTags, { limit: 1, random: true, credentials: credentials[booru] ?? null }))[0];
|
||||||
if (post == null) {
|
if (post == null) {
|
||||||
await interaction.followUp(emojis.warning + " Could not find any post matching tags.");
|
await interaction.followUp(emojis.warning + " Could not find any post matching tags.");
|
||||||
|
|
Loading…
Reference in a new issue