Skip to content

Commit 1f4793d

Browse files
authored
Merge pull request #16 from teamboostify/add/topgg
Added Top.gg
2 parents 58feadd + 25985c0 commit 1f4793d

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

src/commands/info.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default new Command({
3030
const hours = Math.floor(uptime / 3600000) % 24;
3131
const minutes = Math.floor(uptime / 60000) % 60;
3232
const seconds = Math.floor(uptime / 1000) % 60;
33-
33+
3434
const uptimeString = `${days}d ${hours}h ${minutes}m ${seconds}s`;
3535

3636
const embed = new EmbedBuilder()
@@ -66,7 +66,7 @@ export default new Command({
6666
{
6767
name: "Statistics",
6868
value: `**Servers:** ${interaction.client.guilds.cache.size}\n` +
69-
`**Users:** ${interaction.client.users.cache.size}\n`,
69+
`**Users:** ${interaction.client.users.cache.size}\n`,
7070
inline: true,
7171
},
7272
{
@@ -90,9 +90,9 @@ export default new Command({
9090
inline: true,
9191
}
9292
)
93-
.setFooter({
94-
text: `Requested by ${interaction.user.tag}`,
95-
iconURL: interaction.user.displayAvatarURL()
93+
.setFooter({
94+
text: `Requested by ${interaction.user.tag}`,
95+
iconURL: interaction.user.displayAvatarURL()
9696
})
9797
.setTimestamp();
9898

@@ -116,22 +116,30 @@ export default new Command({
116116
.setLabel("Support Server")
117117
.setURL("https://boostify.breaddevv.cc/discord");
118118

119-
const repo = new ButtonBuilder()
119+
const repo = new ButtonBuilder()
120120
.setStyle(ButtonStyle.Link)
121121
.setLabel("Our Repository")
122122
.setURL("https://boostify.breaddevv.cc/github");
123123

124-
const actionBar = new ActionRowBuilder<ButtonBuilder>().setComponents(
124+
const topgg = new ButtonBuilder()
125+
.setStyle(ButtonStyle.Link)
126+
.setLabel("Support Us On Top.gg")
127+
.setURL("https://top.gg/bot/1453802179789066442");
128+
129+
const actionRow1 = new ActionRowBuilder<ButtonBuilder>().setComponents(
125130
website,
126131
terms,
127132
privacy,
128133
support,
129134
repo
130135
);
136+
const actionRow2 = new ActionRowBuilder<ButtonBuilder>().setComponents(
137+
topgg
138+
);
131139

132140
await interaction.editReply({
133141
embeds: [embed],
134-
components: [actionBar],
142+
components: [actionRow1, actionRow2],
135143
});
136144
},
137145
})

src/events/onServerAdd.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
const termsBtn = new ButtonBuilder().setLabel('Terms of Service').setURL('https://boostify.breaddevv.cc/terms').setStyle(ButtonStyle.Link);
1414
const privacy = new ButtonBuilder().setLabel('Privacy Policy').setURL('https://boostify.breaddevv.cc/privacy').setStyle(ButtonStyle.Link);
1515
const github = new ButtonBuilder().setLabel('Our Repository').setURL('https://boostify.breaddevv.cc/github').setStyle(ButtonStyle.Link);
16+
const topgg = new ButtonBuilder().setLabel('Support Us On Top.gg!').setURL('https://top.gg/bot/1453802179789066442').setStyle(ButtonStyle.Link);
1617

1718
const container = new ContainerBuilder().addSectionComponents(comp =>
1819
comp
@@ -26,7 +27,7 @@ export default {
2627
.setThumbnailAccessory(accessory => accessory.setURL(avatarUrl))
2728
)
2829
.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!`))
29-
.addActionRowComponents(row => row.addComponents(termsBtn, privacy, github))
30+
.addActionRowComponents(row => row.addComponents(termsBtn, privacy, github, topgg))
3031
.setAccentColor(SystemColors.main);
3132

3233
await owner.send({

0 commit comments

Comments
 (0)