mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-12 00:04:35 +02:00
corrige help <command> & uptime command
This commit is contained in:
@@ -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] });
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user