Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Jan 26, 2024
1 parent 43b4f6b commit 98e0a07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion commands/bot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder } = require("discord.js");
const loading = require("../components/loading");
const fetch = require("node-fetch");
const staff = require("../models/staff");

module.exports = {
data: new SlashCommandBuilder()
Expand All @@ -13,8 +14,10 @@ module.exports = {
const userCount = Count.individualOwners;
// get timestamp of bot online
const timestamp = new Date(interaction.client.readyTimestamp);
// get staff count
const staffCount = await staff.countDocuments();
const embed = {
"description": `🟢 **Online Since**: <t:${parseInt(timestamp / 1000)}:R>\n🌐 **Domains Registered**: ${domainCount}\n👯 **Users**: ${userCount}\n`,
"description": `🟢 **Online Since**: <t:${parseInt(timestamp / 1000)}:R>\n🌐 **Domains Registered**: ${domainCount}\n👯 **Users**: ${userCount}\n👮 **Staff members**: ${staffCount}\n `,
"fields": [],
"author": {
"name": "is-a.dev",
Expand Down
8 changes: 7 additions & 1 deletion commands/whois.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@ module.exports = {
.setLabel("Manage")
.setURL(web);

const row = new ActionRowBuilder().addComponents(webButton);
const GitHubButton = new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel("GitHub")
.setEmoji("1200483042788126890")
.setURL(fileURL);

const row = new ActionRowBuilder().addComponents(webButton, GitHubButton);

await interaction.editReply({ embeds: [embed], ephemeral: ephemeral, components: [row] });
}
Expand Down

0 comments on commit 98e0a07

Please sign in to comment.