command to say
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m27s

This commit is contained in:
2026-04-01 22:30:42 -04:00
parent ae2046185c
commit f47028b5f5
2 changed files with 22 additions and 3 deletions

19
commands/say.js Normal file
View File

@@ -0,0 +1,19 @@
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('say')
.setDescription('speak on behalf of cockinator')
.addStringOption(option =>
option.setName('message')
.setDescription('The message to say')
.setRequired(true)
),
async execute(interaction) {
if (!config.parentsAndOrGuardians.includes(interaction.member.id)) {
return interaction.reply({ content: 'noe :(', ephemeral: true });
}
const message = interaction.options.getString('message');
await interaction.reply({ content: message });
},
};