From e4450c8417624b71d779cb4f41692538f9165e10 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 2 Sep 2023 19:12:47 -0400 Subject: first commit --- commands/help.js | 11 +++++++++++ 1 file changed, 11 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..92d3e89 --- /dev/null +++ b/commands/help.js @@ -0,0 +1,11 @@ +const { SlashCommandBuilder } = require('discord.js'); +const fs = require('fs'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('help') + .setDescription('Shows the manual'), + async execute(interaction) { + await interaction.reply({content: fs.readFileSync('help.md', 'utf-8'), ephemeral: true}); + }, +}; \ No newline at end of file -- cgit v1.2.3