CatalystMoon/commands/Info/uptime.js

17 lines
608 B
JavaScript
Raw Normal View History

2022-07-23 09:10:45 -04:00
const { EmbedBuilder } = require('discord.js');
const decodeTime = require('format-duration');
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 20:14:57 -04:00
.setTitle("💜 Laura's Story!")
2022-07-28 10:51:19 -04:00
.setDescription(`Latency: ${client.ws.ping}ms\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] });
},
};