gwah
This commit is contained in:
parent
9f7275269f
commit
99079bcc7d
1 changed files with 4 additions and 9 deletions
|
@ -134,15 +134,10 @@ module.exports = {
|
|||
|
||||
const startTime = process.hrtime.bigint();
|
||||
|
||||
var post = null;
|
||||
while (post == null) {
|
||||
var newPost = (await Booru.search(booru, searchTags, { limit: 1, random: true, credentials: credentials[booru] ?? null }))[0];
|
||||
if (newPost == null) {
|
||||
await interaction.followUp("<:warning:1293874152150667315> Could not find any post matching tags.");
|
||||
return;
|
||||
}
|
||||
if (/*!nsfw && isNSFWPost(newPost) || */isAIPost(newPost) || isFucked(newPost)) continue;
|
||||
post = newPost;
|
||||
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.");
|
||||
return;
|
||||
}
|
||||
|
||||
const endTime = process.hrtime.bigint();
|
||||
|
|
Loading…
Reference in a new issue