GRAHHHHH I HATE AI "ART"!!!!!!!!!!!!!!!!!

This commit is contained in:
Ashley Graves 2024-10-10 08:50:59 +02:00
parent 6edadf60ac
commit c878e7fd04

View file

@ -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;
} }