Add 'commands/Info/uptime.js'

This commit is contained in:
LauraOrchid 2022-07-23 13:10:45 +00:00
parent 526c2c5a53
commit 3baacd92dd

17
commands/Info/uptime.js Normal file
View File

@ -0,0 +1,17 @@
const { EmbedBuilder } = require('discord.js');
const decodeTime = require('format-duration');
module.exports = {
name: "uptime",
description: "Obtain bot's uptime",
run: async (client, interaction) => {
const embed = new EmbedBuilder()
.setColor("#FA0CF2")
.setTitle("🕒 Laura's Uptime is...")
.setDescription(`${decodeTime(client.uptime)}`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
},
};