discord-multipurpose-bot/commands/games/coin-flip.js
2025-09-20 01:22:31 +01:00

13 lines
358 B
JavaScript

const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("coinflip")
.setDescription("Flip a coin!"),
category: "Games",
async execute(interaction) {
const result = Math.random() < 0.5 ? "Heads" : "Tails";
await interaction.reply(`🪙 It's ${result}!`);
},
};