nyx/commands/Fun/coinflip.js
night0721 bc346138dd Bot
2021-06-12 18:53:51 +08:00

22 lines
613 B
JavaScript

const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "coinflip",
aliases: ["cf"],
description: "Flip a coin",
/**
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, 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 Cath Team`)
.setDescription(pick);
message.inlineReply(embed);
},
};