mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-13 23:58:10 +02:00
Add helpPanel if msg.content == '@bot'
This commit is contained in:
@@ -66,6 +66,16 @@ module.exports = {
|
||||
message.content === `<@${client.user.id}>`
|
||||
) {
|
||||
message.reply(`Mon prefix est \`${prefix}\``);
|
||||
const command = client.commands.get('help');
|
||||
try {
|
||||
command.execute(message, null, client);
|
||||
console.log(`[${prefix}] ${message.guild.name} | ${message.author.tag} | ${command.name}`.blue)
|
||||
loggT(`[${prefix}] ${message.guild.name} | ${message.author.tag} | ${command.name}`)
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
loggerT(error)
|
||||
message.reply("Erreur lors de l'exécution de la commande help");
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user