Update 'commands/Info/uptime.js'
This commit is contained in:
parent
ed608d52b8
commit
bb68b76adf
@ -1,15 +1,17 @@
|
|||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const decodeTime = require('format-duration');
|
const decodeTime = require('format-duration');
|
||||||
|
const packjson = require('../../package.json');
|
||||||
|
const version = packjson.dependencies['discord.js'];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "uptime",
|
name: "status",
|
||||||
description: "Obtain bot's uptime",
|
description: "Cool facts about Laura :)",
|
||||||
|
|
||||||
run: async (client, interaction) => {
|
run: async (client, interaction) => {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor("#FA0CF2")
|
.setColor("#FA0CF2")
|
||||||
.setTitle("🕒 Laura's Uptime is...")
|
.setTitle("💜 More information about laura :D")
|
||||||
.setDescription(`${decodeTime(client.uptime)}`)
|
.setDescription(`Latency: ${client.ws.ping}ms\nDiscord.js Version: ${version}\nUptime: ${decodeTime(client.uptime)}`)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
||||||
interaction.followUp({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
|
Loading…
Reference in New Issue
Block a user