GRAHHHHH I HATE AI "ART"!!!!!!!!!!!!!!!!!
This commit is contained in:
parent
6edadf60ac
commit
c878e7fd04
1 changed files with 10 additions and 1 deletions
|
@ -94,6 +94,15 @@ function formatTime(time) {
|
||||||
return `${(Number(time) / 1e6).toFixed(2)}ms`
|
return `${(Number(time) / 1e6).toFixed(2)}ms`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const aiTags = [
|
||||||
|
"ai_art",
|
||||||
|
"ai_generated"
|
||||||
|
];
|
||||||
|
|
||||||
|
function isAIPost(post) {
|
||||||
|
return aiTags.map(i=>post.tags.includes(i)).includes(true);
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data,
|
data,
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
|
@ -113,7 +122,7 @@ module.exports = {
|
||||||
await interaction.followUp("Could not find any post matching tags.");
|
await interaction.followUp("Could not find any post matching tags.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!nsfw && isNSFWPost(newPost)) continue;
|
if (!nsfw && isNSFWPost(newPost) || isAIPost(newPost)) continue;
|
||||||
post = newPost;
|
post = newPost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue