From fd7f8eba960981482fabf350995bf753feebb176 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 3 Mar 2025 11:42:27 -0500 Subject: More commands ported; Almost all 2.x features have been added --- bot/src/commands/attack.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bot/src/commands/attack.js (limited to 'bot/src/commands/attack.js') diff --git a/bot/src/commands/attack.js b/bot/src/commands/attack.js new file mode 100644 index 0000000..2863e5a --- /dev/null +++ b/bot/src/commands/attack.js @@ -0,0 +1,17 @@ +import { SlashCommandBuilder } from 'discord.js'; + +export default { + data: new SlashCommandBuilder() + .setName('attack') + .setDescription('You don\'t like someone? Attack them!') + .addStringOption(option => + option + .setName('target') + .setDescription('Enter the target you want to attack.') + .setRequired(true)), + async execute(interaction) { + const target = interaction.options.getString('target'); + + return await interaction.reply(`${interaction.user.displayName} :right_facing_fist: ${target}`); + } +}; -- cgit v1.2.3