corrige help <command> & uptime command

This commit is contained in:
Tutur33
2024-02-17 00:03:40 +01:00
parent d47cd6881b
commit 7662916f85
3 changed files with 23 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
const { EmbedBuilder } = require("discord.js")
module.exports = {
name: 'uptime',
description: 'Affiche le temps d\'activité du bot',
emote: '📄',
utilisation: 'uptime',
category: 'utils',
async execute(message, args, client) {
const embed = new EmbedBuilder()
.setColor("#FFFFFF")
.setTitle(`⏳ Uptime du bot \`${client.user.username}\``)
.setDescription(`\`\`\`${Math.round(client.uptime / (1000 * 60 * 60))}h ${Math.round(client.uptime / (1000 * 60)) % 60}m ${Math.round(client.uptime / 1000) % 60}s\`\`\``)
.setThumbnail(client.user.displayAvatarURL({dynamic: true}))
.setTimestamp()
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})});
message.reply({ embeds: [embed] });
},
};