Konpeki-Discord-Bot/commands/rtd-ephemeral.js

16 lines
652 B
JavaScript
Raw Normal View History

2022-12-15 13:07:35 -06:00
/*
* Konpeki Shiho - Slash Command Definition File
* rtd-ephemeral.js - In-Dev function
*/
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('rtd-ephemeral')
.setDescription('Currently being integrated. Outputs a XKCD valid random number.'),
async execute(interaction) {
const xkcdRandomNumber = 4;
await interaction.reply({ content: `${interaction.client.user.tag} - Integration test of RTD command: XKCD random number is ${xkcdRandomNumber}.\nThis number is chosen by a fair dice roll and guaranteed to be random.\nSee <https://xkcd.com/221/>`, ephemeral: true });
},
};