DiscordJS-v14-Template/commands/Info/uptime.js

17 lines
625 B
JavaScript

const { EmbedBuilder } = require('discord.js');
const decodeTime = require('format-duration');
module.exports = {
name: "status",
description: "Cool facts about Laura :)",
run: async (client, interaction) => {
const embed = new EmbedBuilder()
.setColor("#FA0CF2")
.setTitle("💜 More information about laura :D")
.setDescription(`Latency: ${client.ws.ping}ms\nUptime: ${decodeTime(client.uptime)}`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
},
};