Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions src/commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
},
{
Expand All @@ -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();

Expand All @@ -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<ButtonBuilder>().setComponents(
const topgg = new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel("Support Us On Top.gg")
.setURL("https://top.gg/bot/1453802179789066442");

const actionRow1 = new ActionRowBuilder<ButtonBuilder>().setComponents(
website,
terms,
privacy,
support,
repo
);
const actionRow2 = new ActionRowBuilder<ButtonBuilder>().setComponents(
topgg
);

await interaction.editReply({
embeds: [embed],
components: [actionBar],
components: [actionRow1, actionRow2],
});
},
})
3 changes: 2 additions & 1 deletion src/events/onServerAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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({
Expand Down
Loading