summary
small update for bot output
This commit is contained in:
@@ -211,8 +211,7 @@ class CommandHandler {
|
|||||||
const basicEmbed = new EmbedBuilder()
|
const basicEmbed = new EmbedBuilder()
|
||||||
.setTitle(`User: ${playerData.username || 'Unknown'}`)
|
.setTitle(`User: ${playerData.username || 'Unknown'}`)
|
||||||
.setDescription(playerData.profile?.bio || 'No bio available')
|
.setDescription(playerData.profile?.bio || 'No bio available')
|
||||||
.setColor('#0099ff')
|
.setColor('#0099ff');
|
||||||
.setImage('https://www.vrbattles.gg/assets/images/Qubi/vrwearcubesatad.png');
|
|
||||||
|
|
||||||
// Add avatar if available
|
// Add avatar if available
|
||||||
if (playerData.profile?.avatar) {
|
if (playerData.profile?.avatar) {
|
||||||
@@ -221,6 +220,14 @@ class CommandHandler {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add badge image if available
|
||||||
|
if (playerData.profile?.current_level_badge) {
|
||||||
|
const badgeImageUrl = this.playerService.getBadgeImageUrl(playerData.profile.current_level_badge);
|
||||||
|
basicEmbed.setImage(badgeImageUrl);
|
||||||
|
} else {
|
||||||
|
basicEmbed.setImage('https://www.vrbattles.gg/assets/images/Qubi/vrwearcubesatad.png');
|
||||||
|
}
|
||||||
|
|
||||||
// Add basic profile fields
|
// Add basic profile fields
|
||||||
const profileFields = [];
|
const profileFields = [];
|
||||||
const profile = playerData.profile || {};
|
const profile = playerData.profile || {};
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ class EmbedBuilders {
|
|||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(`User: ${playerData.username || 'Unknown'}`)
|
.setTitle(`User: ${playerData.username || 'Unknown'}`)
|
||||||
.setDescription(profile.bio || 'No bio available')
|
.setDescription(profile.bio || 'No bio available')
|
||||||
.setColor('#0099ff')
|
.setColor('#0099ff');
|
||||||
.setImage('https://www.vrbattles.gg/assets/images/Qubi/vrwearcubesatad.png');
|
|
||||||
|
|
||||||
// Add thumbnail (avatar)
|
// Add thumbnail (avatar)
|
||||||
if (profile.avatar) {
|
if (profile.avatar) {
|
||||||
@@ -16,6 +15,14 @@ class EmbedBuilders {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add badge image if available
|
||||||
|
if (profile.current_level_badge) {
|
||||||
|
const badgeImageUrl = playerService.getBadgeImageUrl(profile.current_level_badge);
|
||||||
|
embed.setImage(badgeImageUrl);
|
||||||
|
} else {
|
||||||
|
embed.setImage('https://www.vrbattles.gg/assets/images/Qubi/vrwearcubesatad.png');
|
||||||
|
}
|
||||||
|
|
||||||
// Add profile fields
|
// Add profile fields
|
||||||
const profileFields = [];
|
const profileFields = [];
|
||||||
if (profile.country) profileFields.push({ name: 'Country', value: profile.country, inline: true });
|
if (profile.country) profileFields.push({ name: 'Country', value: profile.country, inline: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user