mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
13 lines
336 B
JavaScript
13 lines
336 B
JavaScript
|
const { SlashCommandBuilder } = require("discord.js");
|
||
|
|
||
|
module.exports = {
|
||
|
data: new SlashCommandBuilder()
|
||
|
.setName("coinflip")
|
||
|
.setDescription("Flip a coin!"),
|
||
|
|
||
|
async execute(interaction) {
|
||
|
const result = Math.random() < 0.5 ? "Heads" : "Tails";
|
||
|
await interaction.reply(`🪙 It's ${result}!`);
|
||
|
},
|
||
|
};
|