2022-07-23 09:10:45 -04:00
|
|
|
const { EmbedBuilder } = require('discord.js');
|
|
|
|
const decodeTime = require('format-duration');
|
2022-07-28 10:15:57 -04:00
|
|
|
const packjson = require('../../package.json');
|
|
|
|
const version = packjson.dependencies['discord.js'];
|
2022-07-23 09:10:45 -04:00
|
|
|
|
|
|
|
module.exports = {
|
2022-07-28 10:15:57 -04:00
|
|
|
name: "status",
|
|
|
|
description: "Cool facts about Laura :)",
|
2022-07-23 09:10:45 -04:00
|
|
|
|
|
|
|
run: async (client, interaction) => {
|
|
|
|
const embed = new EmbedBuilder()
|
|
|
|
.setColor("#FA0CF2")
|
2022-07-28 10:15:57 -04:00
|
|
|
.setTitle("💜 More information about laura :D")
|
|
|
|
.setDescription(`Latency: ${client.ws.ping}ms\nDiscord.js Version: ${version}\nUptime: ${decodeTime(client.uptime)}`)
|
2022-07-23 09:10:45 -04:00
|
|
|
.setTimestamp()
|
|
|
|
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
|
|
|
interaction.followUp({ embeds: [embed] });
|
|
|
|
},
|
|
|
|
};
|