diff --git a/commands/say.js b/commands/say.js new file mode 100644 index 0000000..76e2aad --- /dev/null +++ b/commands/say.js @@ -0,0 +1,17 @@ +const { SlashCommandBuilder, ActivityType } = require('discord.js'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('say') + .setDescription('make say funny') + .addStringOption(option => + option.setName('message') + .setDescription('The say') + .setRequired(true) + ), + async execute(interaction) { + const message = interaction.options.getString('message'); + console.log(`${interaction.user.tag} made the bot say "${message}"`); + interaction.channel.send(message); + }, +}; \ No newline at end of file