nyx/command/Fun/coinflip.js

18 lines
530 B
JavaScript
Raw Normal View History

2021-09-06 12:38:25 +02:00
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "coinflip",
description: "Flip a coin",
category: "Fun",
run: async (client, interaction, args) => {
let HT = ["Heads!", "Tails!"];
let pick = HT[Math.floor(Math.random() * HT.length)];
let embed = new MessageEmbed()
.setColor(client.color)
.setTitle("CoinFilp Game")
.setTimestamp()
.setFooter(`Made by ${client.author}`)
.setDescription(pick);
await interaction.followUp({ embeds: [embed] });
},
};