more more
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 14s

This commit is contained in:
2025-08-07 23:56:07 +02:00
parent 2594991b21
commit dfc14f7f33
8 changed files with 38 additions and 7 deletions

View File

@ -4,6 +4,7 @@ exports.description =
":scroll: Shows this message. (this bot is a crude imitation of tbolt's better bot :P)";
exports.usage = "<<help [optional other command]";
exports.example = "<<help res";
exports.hidden = false;
exports.run = (client, message, args) => {
let embed = new EmbedBuilder();
embed.setTitle("Commands Helper");
@ -13,6 +14,7 @@ exports.run = (client, message, args) => {
return message.channel.send(
"Command not found, try `<<help` first."
);
if (cmd.hidden && message.author.id != client.ownerID) return;
embed.setTitle(`Help for \`${cmd.name}\` command`);
embed.setDescription(cmd.description);
embed.addFields(
@ -27,6 +29,7 @@ exports.run = (client, message, args) => {
);
} else {
client.commands.forEach((cmd) => {
if (cmd.hidden && message.author.id != client.ownerID) return;
embed.addFields({
name: cmd.name,
value: cmd.description,