From f924dd8fcaeca7523289b9aba46b6145c46b42dd Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 5 Sep 2023 11:38:26 -0400 Subject: rename /use to /send, add resetcmd --- commands/send.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 commands/send.js (limited to 'commands/send.js') diff --git a/commands/send.js b/commands/send.js new file mode 100644 index 0000000..a339784 --- /dev/null +++ b/commands/send.js @@ -0,0 +1,16 @@ +const { SlashCommandBuilder } = require('discord.js'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('send') + .setDescription('Send a command') + .addStringOption(option => + option.setName('command') + .setDescription('Name of the command to send') + .setRequired(true) + .addChoices(...global.data.getList()) + ), + async execute(interaction) { + await interaction.reply(global.data.get(interaction.options.getString('command'))); + }, +}; \ No newline at end of file -- cgit v1.2.3