18 lines
541 B
JavaScript
18 lines
541 B
JavaScript
const { Client, Message, MessageEmbed } = require("discord.js");
|
|
module.exports = {
|
|
name: "coinflip",
|
|
aliases: ["cf"],
|
|
description: "Flip a coin",
|
|
category: "Fun",
|
|
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 ${client.author}`)
|
|
.setDescription(pick);
|
|
message.inlineReply(embed);
|
|
},
|
|
};
|