diff --git a/.replit b/.replit index 5b6f647..7d084d4 100644 --- a/.replit +++ b/.replit @@ -22,6 +22,10 @@ externalPort = 80 localPort = 8080 externalPort = 8080 +[[ports]] +localPort = 33401 +externalPort = 3000 + [workflows] runButton = "Project" diff --git a/aethex-bot/commands/studio.js b/aethex-bot/commands/studio.js index ef7ac9f..e046a21 100644 --- a/aethex-bot/commands/studio.js +++ b/aethex-bot/commands/studio.js @@ -48,10 +48,14 @@ module.exports = { .order('created_at', { ascending: false }) .limit(5); + const avatarUrl = profile?.avatar_url && profile.avatar_url.startsWith('http') + ? profile.avatar_url + : target.displayAvatarURL(); + const embed = new EmbedBuilder() .setColor(0x7c3aed) .setTitle(`${profile?.username || target.tag}'s Studio`) - .setThumbnail(profile?.avatar_url || target.displayAvatarURL()) + .setThumbnail(avatarUrl) .setDescription(profile?.bio || 'No bio set') .addFields( { name: 'Total Projects', value: `${projectCount || 0}`, inline: true } diff --git a/attached_assets/image_1765213694126.png b/attached_assets/image_1765213694126.png new file mode 100644 index 0000000..e802aa6 Binary files /dev/null and b/attached_assets/image_1765213694126.png differ