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