From 5b61b9e9a0eb76b0b79a69aeeb6941fb79a1dbc1 Mon Sep 17 00:00:00 2001 From: fiveman1 Date: Sun, 21 Sep 2025 18:05:06 -0500 Subject: [PATCH] make submit redirect to website --- commands/submit.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 commands/submit.js diff --git a/commands/submit.js b/commands/submit.js new file mode 100644 index 0000000..35a2663 --- /dev/null +++ b/commands/submit.js @@ -0,0 +1,26 @@ +const { SlashCommandBuilder } = require('@discordjs/builders'); +const { commands } = require("../config/config.js"); + +/** + * @param {import('discord.js').ChatInputCommandInteraction} interaction + */ +async function execute(interaction) { + await interaction.editReply("🚫 Your map was NOT submitted. The bot no longer supports submissions. Submit your map at https://maps.strafes.net/submit"); +} + +module.exports = { + data: new SlashCommandBuilder() + .setName('submit') + .setDescription('Submit your map') + .addStringOption(option => + option.setName("game") + .setDescription("Select the maptest game") + .setRequired(true) + .addChoices(...commands)) + .addIntegerOption(option => + option.setName("asset_id") + .setDescription("The asset ID of the model") + .setRequired(true)) + , + execute +}; \ No newline at end of file -- 2.49.1