Add 'commands/Info/uptime.js'
This commit is contained in:
parent
526c2c5a53
commit
3baacd92dd
17
commands/Info/uptime.js
Normal file
17
commands/Info/uptime.js
Normal 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] });
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user