blob: e65e9ad092584f3e6c4a3b603c6c13813db529d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module.exports = {
name: 'help',
description: "shows the available commands",
hidden: false,
async execute(message, args) {
let out = '';
globalThis.commands.forEach((cmd) => {
if (cmd.hidden) return;
out = `${out}${cmd.name} - ${cmd.description}\n`
});
return await message.reply({
content: `available commands:\n${out}`
});
}
}
|