From 3572b97661a3f7c6c29e958b63c20d9f2ef936ac Mon Sep 17 00:00:00 2001 From: Amygdala Peanut-Almond Date: Wed, 22 Apr 2026 22:49:01 +0200 Subject: initialise repository Signed-off-by: Amygdala Peanut-Almond --- commands/help.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 commands/help.js (limited to 'commands/help.js') diff --git a/commands/help.js b/commands/help.js new file mode 100644 index 0000000..e65e9ad --- /dev/null +++ b/commands/help.js @@ -0,0 +1,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}` + }); + } +} + -- cgit 1.4.1