Skip to content

Commit

Permalink
Remove manage site call
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech authored Jul 24, 2024
1 parent 9744539 commit f36105d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions commands/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ module.exports = {
.setName("bot")
.setDescription("Shows bot info"),
async execute(interaction) {
await loading(interaction, false);
const Count = await fetch("https://manage.is-a.dev/api/stats").then((res) => res.json());
const domainCount = Count.subdomains;
const userCount = Count.individualOwners;
await loading(interaction, false)
// 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👮 **Staff members**: ${staffCount}\n `,
"description": `🟢 **Online Since**: <t:${parseInt(timestamp / 1000)}:R>\n 👮 **Staff members**: ${staffCount}\n `,
"fields": [],
"author": {
"name": "is-a.dev",
Expand Down

0 comments on commit f36105d

Please sign in to comment.