Files
discord-selfbot/commands/help.js

21 lines
574 B
JavaScript
Raw Permalink Normal View History

2025-04-10 15:50:25 -04:00
const { sendCommandResponse } = require('../utils/messageUtils');
2024-02-05 19:18:42 -05:00
module.exports = {
name: 'help',
description: 'List all of my commands or info about a specific command.',
2025-04-10 15:50:25 -04:00
async execute(message, args, deleteTimeout) {
2024-02-05 22:38:35 -05:00
let reply = '```';
reply += 'Here are the available commands:\n\n';
2024-02-05 19:18:42 -05:00
const commands = Array.from(message.client.commands.values());
2024-02-05 22:38:35 -05:00
commands.forEach(command => {
reply += `.${command.name} - ${command.description}\n`;
});
reply += '```';
2024-02-05 19:18:42 -05:00
2025-04-10 15:50:25 -04:00
await sendCommandResponse(message, reply, deleteTimeout, false);
2024-02-05 19:18:42 -05:00
},
};