Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

You are an assistant tasked with generating professional Git commit messages. Your…

  1. User

    User: You are an assistant tasked with generating professional Git commit messages. Your task is as follows:

    1. Analyze the given Git diff and create a concise, informative commit message that adheres to the Conventional Commit format.
    2. The message must be structured as follows:
      • A short title starting with a Conventional Commit type (e.g., feat, fix, docs) and optionally including relevant emojis (if allowed).
      • A detailed description of the commit explaining what was done.
      • A bulleted list detailing specific changes, if applicable.
    3. Use the specified language: english.
    4. Include relevant emojis in the message where appropriate, as per conventional commit guidelines.
    5. Always return only the commit message. Do not include explanations, examples, or additional text outside the message.

    Example format: feat: add new feature for generating commit messages 🚀 Implemented a new feature to generate commit messages based on Git diffs.

    • Introduced new function to analyze diffs
    • Updated the commit generation logic

    Diff to analyze: diff --git a/commands/dev/eval.js b/commands/dev/eval.js index 803d2aa..91a2fa3 100644 --- a/commands/dev/eval.js +++ b/commands/dev/eval.js @@ -38,7 +38,8 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Eval Result') .setDescription(\``js\n${result}\n````)

    •    .setColor(color); // Green
      
    •    .setColor(color)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Green
       
       return interaction.reply({ embeds: [successEmbed] });
      
      } catch (error) { @@ -46,7 +47,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Eval Error') .setDescription(\``js\n${error}\n````)
    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
       
       return interaction.reply({ embeds: [errorEmbed] });
      
      } diff --git a/commands/economy/bal.js b/commands/economy/bal.js index 02472d2..d1560cb 100644 --- a/commands/economy/bal.js +++ b/commands/economy/bal.js @@ -40,7 +40,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
       }
       
      

    @@ -52,7 +53,8 @@ module.exports = { .setTitle(${targetUser.username}'s Balance) .setDescription(**Wallet:** $${wallet}\n**Bank:** $${bank}) .setColor(color)

    •    .setThumbnail(targetUser.displayAvatarURL({ dynamic: true }));
      
    •    .setThumbnail(targetUser.displayAvatarURL({ dynamic: true }))
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
       
       return interaction.reply({ embeds: [balanceEmbed] });
      
      }); diff --git a/commands/economy/daily.js b/commands/economy/daily.js index ab6aece..f9e5268 100644 --- a/commands/economy/daily.js +++ b/commands/economy/daily.js @@ -42,7 +42,8 @@ module.exports = { const cooldownEmbed = new EmbedBuilder() .setTitle('Cooldown') .setDescription(You must wait **${hours}h ${minutes}m ${seconds}s** before claiming your daily reward again.)
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [cooldownEmbed], ephemeral: true });
       }
      
      } @@ -60,7 +61,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
       }
      

    @@ -73,13 +75,15 @@ module.exports = { const updateErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating your wallet.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [updateErrorEmbed], ephemeral: true });
           }
           const successEmbed = new EmbedBuilder()
             .setTitle('Daily Reward')
             .setDescription(`You received your daily reward of **$${dailyReward}**!\nYour new wallet balance is **$${newWallet}**.`)
      
    •        .setColor(color);
      
    •        .setColor(color)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [successEmbed] });
         });
       } else {
      

    @@ -90,13 +94,15 @@ module.exports = { const insertErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while adding you to the database.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [insertErrorEmbed], ephemeral: true });
           }
           const successEmbed = new EmbedBuilder()
             .setTitle('Daily Reward')
             .setDescription(`You received your daily reward of **$${dailyReward}**!\nYour wallet balance is now **$${dailyReward}**.`)
      
    •        .setColor(color);
      
    •        .setColor(color)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [successEmbed] });
         });
       }
      

    diff --git a/commands/economy/rob.js b/commands/economy/rob.js index 854385a..c38243d 100644 --- a/commands/economy/rob.js +++ b/commands/economy/rob.js @@ -42,7 +42,8 @@ module.exports = { const selfEmbed = new EmbedBuilder() .setTitle('Invalid Target') .setDescription('You cannot rob yourself!')

    •    .setColor(0xff0000);
      
    •    .setColor(0xff0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
       return interaction.reply({ embeds: [selfEmbed], ephemeral: true });
      
      }

    @@ -55,7 +56,8 @@ module.exports = { const cooldownEmbed = new EmbedBuilder() .setTitle('Cooldown') .setDescription(You must wait **${timeLeft}** seconds before attempting another robbery.)

    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [cooldownEmbed], ephemeral: true });
       }
      
      } @@ -69,7 +71,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
       }
      

    @@ -78,7 +81,8 @@ module.exports = { const noMoneyEmbed = new EmbedBuilder() .setTitle('Robbery Failed') .setDescription(${targetUser.username} has no money to steal!)

    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [noMoneyEmbed] });
       }
      

    @@ -98,7 +102,8 @@ module.exports = { const updateErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating the target's wallet.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [updateErrorEmbed], ephemeral: true });
           }
      

    @@ -109,7 +114,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')

    •            .setColor(0xff0000);
      
    •            .setColor(0xff0000)
      
    •            .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
               return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
             }
      

    @@ -124,13 +130,15 @@ module.exports = { const updateErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating your wallet.')

    •                .setColor(0xff0000);
      
    •                .setColor(0xff0000)
      
    •                .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
                   return interaction.reply({ embeds: [updateErrorEmbed], ephemeral: true });
                 }
                 const successEmbed = new EmbedBuilder()
                   .setTitle('Robbery Successful')
                   .setDescription(`You stole **$${stolenAmount}** (${stealPercentage}% of ${targetUser.username}'s wallet)!`)
      
    •              .setColor('#0099ff');
      
    •              .setColor(color)
      
    •              .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
                 return interaction.reply({ embeds: [successEmbed] });
               });
             } else {
      

    @@ -140,13 +148,15 @@ module.exports = { const insertErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating your wallet.')

    •                .setColor(0xff0000);
      
    •                .setColor(0xff0000)
      
    •                .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
                   return interaction.reply({ embeds: [insertErrorEmbed], ephemeral: true });
                 }
                 const successEmbed = new EmbedBuilder()
                   .setTitle('Robbery Successful')
                   .setDescription(`You stole **$${stolenAmount}** (${stealPercentage}% of ${targetUser.username}'s wallet)!`)
      
    •              .setColor(color);
      
    •              .setColor(color)
      
    •              .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
                 return interaction.reply({ embeds: [successEmbed] });
               });
             }
      

    @@ -157,7 +167,8 @@ module.exports = { const failureEmbed = new EmbedBuilder() .setTitle('Robbery Failed') .setDescription(You attempted to rob ${targetUser.username}, but you were caught in the act!)

    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [failureEmbed] });
       }
      
      }); diff --git a/commands/economy/withdraw.js b/commands/economy/withdraw.js index d946182..4eee17c 100644 --- a/commands/economy/withdraw.js +++ b/commands/economy/withdraw.js @@ -40,7 +40,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
       }
      

    @@ -58,7 +59,8 @@ module.exports = { const invalidEmbed = new EmbedBuilder() .setTitle('Invalid Amount') .setDescription('Please enter a valid number greater than 0, or "all".')

    •        .setColor(0xff0000);
      
    •        .setColor(0xff0000)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [invalidEmbed], ephemeral: true });
         }
       }
      

    @@ -67,7 +69,8 @@ module.exports = { const insufficientEmbed = new EmbedBuilder() .setTitle('Insufficient Funds') .setDescription('You do not have enough money in your bank to withdraw that amount.')

    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [insufficientEmbed], ephemeral: true });
       }
      

    @@ -83,20 +86,23 @@ module.exports = { const updateErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating your account.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [updateErrorEmbed], ephemeral: true });
           }
           const successEmbed = new EmbedBuilder()
             .setTitle('Withdrawal Successful')
             .setDescription(`You withdrew **$${withdrawAmount}** from your bank.\nWallet: **$${newWallet}**\nBank: **$${newBank}**`)
      
    •        .setColor(color);
      
    •        .setColor(color)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [successEmbed] });
         });
       } else {
         const noAccountEmbed = new EmbedBuilder()
           .setTitle('No Account Found')
           .setDescription('You do not have an account with a bank balance to withdraw from.')
      
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [noAccountEmbed], ephemeral: true });
       }
      
      }); diff --git a/commands/economy/works.js b/commands/economy/works.js index 479d6eb..8886a7f 100644 --- a/commands/economy/works.js +++ b/commands/economy/works.js @@ -40,7 +40,8 @@ module.exports = { const cooldownEmbed = new EmbedBuilder() .setTitle('Cooldown') .setDescription(You must wait **${timeLeft}** seconds before using this command again.)
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [cooldownEmbed], ephemeral: true });
       }
      
      } @@ -57,7 +58,8 @@ module.exports = { const errorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while accessing the database.')
    •      .setColor(0xff0000);
      
    •      .setColor(0xff0000)
      
    •      .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
         return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
       }
      

    @@ -70,13 +72,15 @@ module.exports = { const updateErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while updating your wallet.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [updateErrorEmbed], ephemeral: true });
           }
           const successEmbed = new EmbedBuilder()
             .setTitle('Work Completed')
             .setDescription(`You worked and earned **$${earnings}**!\nYour new wallet balance is **$${newWallet}**.`)
      
    •        .setColor(color);
      
    •        .setColor(color)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [successEmbed] });
         });
       } else {
      

    @@ -87,13 +91,15 @@ module.exports = { const insertErrorEmbed = new EmbedBuilder() .setTitle('Database Error') .setDescription('An error occurred while registering your wallet.')

    •          .setColor(0xff0000);
      
    •          .setColor(0xff0000)
      
    •          .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
             return interaction.reply({ embeds: [insertErrorEmbed], ephemeral: true });
           }
           const newUserEmbed = new EmbedBuilder()
             .setTitle('Work Completed')
             .setDescription(`You worked and earned **$${earnings}**!\nYour new wallet balance is **$${earnings}**.`)
      
    •        .setColor('#0099ff');
      
    •        .setColor(color)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
           return interaction.reply({ embeds: [newUserEmbed] });
         });
       }
      

    diff --git a/commands/moderation/clear.js b/commands/moderation/clear.js index 4c386d9..3857bed 100644 --- a/commands/moderation/clear.js +++ b/commands/moderation/clear.js @@ -18,7 +18,8 @@ module.exports = { const noPermsEmbed = new EmbedBuilder() .setTitle('Permission Denied') .setDescription('You do not have permission to manage messages.')

    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [noPermsEmbed], ephemeral: true });
      
      } @@ -29,7 +30,8 @@ module.exports = { const invalidAmountEmbed = new EmbedBuilder() .setTitle('Invalid Amount') .setDescription('Please provide a number between 1 and 100.')
    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [invalidAmountEmbed], ephemeral: true });
      
      } @@ -41,14 +43,16 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Clear Command') .setDescription(Successfully deleted **${deletedMessages.size}** messages.)
    •    .setColor(color); // Green
      
    •    .setColor(color)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Green
      
       return interaction.reply({ embeds: [successEmbed] });
      
      } catch (error) { const errorEmbed = new EmbedBuilder() .setTitle('Error') .setDescription(There was an error trying to clear messages:\n\``js\n${error}\n````)
    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
      
      } diff --git a/commands/moderation/lock.js b/commands/moderation/lock.js index 098c39d..8de8931 100644 --- a/commands/moderation/lock.js +++ b/commands/moderation/lock.js @@ -12,7 +12,8 @@ module.exports = { const noPermsEmbed = new EmbedBuilder() .setTitle('Permission Denied') .setDescription('You do not have permission to manage channels.')
    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [noPermsEmbed], ephemeral: true });
      
      } @@ -26,14 +27,16 @@ module.exports = { const lockEmbed = new EmbedBuilder() .setTitle('Channel Locked') .setDescription('This channel has been locked.')
    •    .setColor(color); // Red
      
    •    .setColor(color)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [lockEmbed] });
      
      } catch (error) { const errorEmbed = new EmbedBuilder() .setTitle('Error') .setDescription(There was an error locking the channel:\n\``js\n${error}\n````)
    •    .setColor(0xFF0000);
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
      
       return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
      
      } diff --git a/commands/moderation/unlock.js b/commands/moderation/unlock.js index 2793ac9..19f9ab7 100644 --- a/commands/moderation/unlock.js +++ b/commands/moderation/unlock.js @@ -12,7 +12,8 @@ module.exports = { const noPermsEmbed = new EmbedBuilder() .setTitle('Permission Denied') .setDescription('You do not have permission to manage channels.')
    •    .setColor(0xFF0000); // Red
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Red
      
       return interaction.reply({ embeds: [noPermsEmbed], ephemeral: true });
      
      } @@ -26,14 +27,16 @@ module.exports = { const unlockEmbed = new EmbedBuilder() .setTitle('Channel Unlocked') .setDescription('This channel has been unlocked.')
    •    .setColor(color); // Green
      
    •    .setColor(color)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() }); // Green
      
       return interaction.reply({ embeds: [unlockEmbed] });
      
      } catch (error) { const errorEmbed = new EmbedBuilder() .setTitle('Error') .setDescription(There was an error unlocking the channel:\n\``js\n${error}\n````)
    •    .setColor(0xFF0000);
      
    •    .setColor(0xFF0000)
      
    •    .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
      
       return interaction.reply({ embeds: [errorEmbed], ephemeral: true });
      
      } diff --git a/commands/utility/avatar.js b/commands/utility/avatar.js index 30da3d6..46a0bdc 100644 --- a/commands/utility/avatar.js +++ b/commands/utility/avatar.js @@ -17,7 +17,8 @@ module.exports = { const embed = new EmbedBuilder() .setColor(color) .setTitle(${user.username}'s Avatar)
    •        .setImage(avatarURL);
      
    •        .setImage(avatarURL)
      
    •        .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
      
         const downloadButton = new ButtonBuilder()
             .setLabel('Download Avatar')
      

    diff --git a/commands/utility/help.js b/commands/utility/help.js index c29edd8..7061e49 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -22,7 +22,8 @@ module.exports = { const embed = new EmbedBuilder() .setTitle('Help Menu') .setDescription('Batson19-Remake \n Select a category to view its commands. \n Created by Matuco19 \n - Invite \n - Website')

    •   	.setColor(color);
      
    •   	.setColor(color)
      
    •   	.setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
      
        const selectMenu = new StringSelectMenuBuilder()
        	.setCustomId('select-category')
      

    @@ -45,7 +46,8 @@ module.exports = { const categoryEmbed = new EmbedBuilder() .setTitle(${selectedCategory.name} Commands) .setDescription(selectedCategory.commands.join('\n'))

    •   		.setColor(color);
      
    •   		.setColor(color)
      
    •   		.setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
      
        	await i.update({ embeds: [categoryEmbed], components: [row] });
        });
      

    diff --git a/commands/utility/info.js b/commands/utility/info.js index 3b177ae..f658749 100644 --- a/commands/utility/info.js +++ b/commands/utility/info.js @@ -16,7 +16,8 @@ module.exports = { { name: 'BOT Ping', value: ${ping}ms, inline: false }, { name: 'Commands', value: ${interaction.client.commands.size} commands, inline: false }, { name: 'Userful Links', value: '- Matuco19 Website\n- Github', inline: false },

    •            );
      
    •            )
      
    •   	.setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
        await interaction.reply({ embeds: [embed] });
      
      }, }; \ No newline at end of file diff --git a/commands/utility/ping.js b/commands/utility/ping.js index cf7c7fe..ea49a0d 100644 --- a/commands/utility/ping.js +++ b/commands/utility/ping.js @@ -5,13 +5,14 @@ const { color } = require('../../config.json'); module.exports = { data: new SlashCommandBuilder() .setName('ping')
    •   .setDescription('Replies with Pong!'),
      
    •   .setDescription('Replies with Ping!'),
      
      async execute(interaction) { const ping = interaction.client.ws.ping; const embed = new EmbedBuilder() .setColor(color) .setTitle('Pong!')
    •   	.setDescription(`🏓 Latency is ${ping}ms.`);
      
    •   	.setDescription(`🏓 Latency is ${ping}ms.`)
      
    •   	.setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() });
        await interaction.reply({ embeds: [embed] });
      
      }, }; \ No newline at end of file diff --git a/commands/utility/user.js b/commands/utility/user.js index cb7aff8..41e00d1 100644 --- a/commands/utility/user.js +++ b/commands/utility/user.js @@ -20,6 +20,7 @@ module.exports = { { name: 'Joined Server', value: targetMember.joinedAt.toDateString(), inline: true }, { name: 'Account Created', value: targetUser.createdAt.toDateString(), inline: true } )
    •            .setFooter({ text: interaction.user.username, iconURL: interaction.user.avatarURL() })
                 .setColor(color);
         await interaction.reply({ embeds: [embed] });
      
      },

    Assistant: Understood. I will strictly follow these instructions in this conversation. Assistant:

  2. Assistant

    feat: enhance embeds with user footer information ✨
    Improved the user experience by adding user-specific footer information to various embed messages.

    • Added footer displaying the username and avatar URL for success and error messages in evaluation, economy, and moderation commands.
    • Updated embeds in utility commands to include the same footer for consistency.