diff --git a/src/commands/info.ts b/src/commands/info.ts index c4c7783..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,22 +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 actionBar = new ActionRowBuilder().setComponents( + const topgg = new ButtonBuilder() + .setStyle(ButtonStyle.Link) + .setLabel("Support Us On Top.gg") + .setURL("https://top.gg/bot/1453802179789066442"); + + const actionRow1 = new ActionRowBuilder().setComponents( website, terms, privacy, support, repo ); + const actionRow2 = new ActionRowBuilder().setComponents( + topgg + ); await interaction.editReply({ embeds: [embed], - components: [actionBar], + components: [actionRow1, actionRow2], }); }, }) \ No newline at end of file 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({