From dc7968191ad392c93d571e60e369c3646baa2e13 Mon Sep 17 00:00:00 2001 From: breadddevv Date: Sun, 12 Jul 2026 13:07:24 +0100 Subject: [PATCH 1/2] Added Top.gg --- src/commands/info.ts | 8 +++++++- src/events/onServerAdd.ts | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/commands/info.ts b/src/commands/info.ts index c4c7783..7fada65 100644 --- a/src/commands/info.ts +++ b/src/commands/info.ts @@ -121,12 +121,18 @@ export default new Command({ .setLabel("Our Repository") .setURL("https://boostify.breaddevv.cc/github"); + const topgg = new ButtonBuilder() + .setStyle(ButtonStyle.Link) + .setLabel("Support Us On Top.gg") + .setURL("https://top.gg/bot/1453802179789066442"); + const actionBar = new ActionRowBuilder().setComponents( website, terms, privacy, support, - repo + repo, + topgg ); await interaction.editReply({ diff --git a/src/events/onServerAdd.ts b/src/events/onServerAdd.ts index 0504cae..bf219c8 100644 --- a/src/events/onServerAdd.ts +++ b/src/events/onServerAdd.ts @@ -13,6 +13,7 @@ export default { const termsBtn = new ButtonBuilder().setLabel('Terms of Service').setURL('https://boostify.breaddevv.cc/terms').setStyle(ButtonStyle.Link); const privacy = new ButtonBuilder().setLabel('Privacy Policy').setURL('https://boostify.breaddevv.cc/privacy').setStyle(ButtonStyle.Link); const github = new ButtonBuilder().setLabel('Our Repository').setURL('https://boostify.breaddevv.cc/github').setStyle(ButtonStyle.Link); + const topgg = new ButtonBuilder().setLabel('Support Us On Top.gg!').setURL('https://top.gg/bot/1453802179789066442').setStyle(ButtonStyle.Link); const container = new ContainerBuilder().addSectionComponents(comp => comp @@ -26,7 +27,7 @@ export default { .setThumbnailAccessory(accessory => accessory.setURL(avatarUrl)) ) .addTextDisplayComponents(text => text.setContent(`-# You're receiving this text because you/other member added me to the server **${guild.name}** — In which you're the owner!`)) - .addActionRowComponents(row => row.addComponents(termsBtn, privacy, github)) + .addActionRowComponents(row => row.addComponents(termsBtn, privacy, github, topgg)) .setAccentColor(SystemColors.main); await owner.send({ From 25985c0c08051a0a398b95f18971fa33749b2ec5 Mon Sep 17 00:00:00 2001 From: breadddevv Date: Sun, 12 Jul 2026 13:12:36 +0100 Subject: [PATCH 2/2] Splitted buttons --- src/commands/info.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/commands/info.ts b/src/commands/info.ts index 7fada65..3ab827d 100644 --- a/src/commands/info.ts +++ b/src/commands/info.ts @@ -30,7 +30,7 @@ export default new Command({ const hours = Math.floor(uptime / 3600000) % 24; const minutes = Math.floor(uptime / 60000) % 60; const seconds = Math.floor(uptime / 1000) % 60; - + const uptimeString = `${days}d ${hours}h ${minutes}m ${seconds}s`; const embed = new EmbedBuilder() @@ -66,7 +66,7 @@ export default new Command({ { name: "Statistics", value: `**Servers:** ${interaction.client.guilds.cache.size}\n` + - `**Users:** ${interaction.client.users.cache.size}\n`, + `**Users:** ${interaction.client.users.cache.size}\n`, inline: true, }, { @@ -90,9 +90,9 @@ export default new Command({ inline: true, } ) - .setFooter({ - text: `Requested by ${interaction.user.tag}`, - iconURL: interaction.user.displayAvatarURL() + .setFooter({ + text: `Requested by ${interaction.user.tag}`, + iconURL: interaction.user.displayAvatarURL() }) .setTimestamp(); @@ -116,28 +116,30 @@ export default new Command({ .setLabel("Support Server") .setURL("https://boostify.breaddevv.cc/discord"); - const repo = new ButtonBuilder() + const repo = new ButtonBuilder() .setStyle(ButtonStyle.Link) .setLabel("Our Repository") .setURL("https://boostify.breaddevv.cc/github"); - const topgg = new ButtonBuilder() + const topgg = new ButtonBuilder() .setStyle(ButtonStyle.Link) .setLabel("Support Us On Top.gg") .setURL("https://top.gg/bot/1453802179789066442"); - const actionBar = new ActionRowBuilder().setComponents( + const actionRow1 = new ActionRowBuilder().setComponents( website, terms, privacy, support, - repo, + repo + ); + const actionRow2 = new ActionRowBuilder().setComponents( topgg ); await interaction.editReply({ embeds: [embed], - components: [actionBar], + components: [actionRow1, actionRow2], }); }, }) \ No newline at end of file