2021-06-12 12:53:51 +02:00
|
|
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
|
|
name: "coinflip",
|
|
|
|
aliases: ["cf"],
|
|
|
|
description: "Flip a coin",
|
2021-06-24 09:53:19 +02:00
|
|
|
category: "Fun",
|
2021-06-12 12:53:51 +02:00
|
|
|
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()
|
2021-06-24 09:53:19 +02:00
|
|
|
.setFooter(`Made by ${client.author}`)
|
2021-06-12 12:53:51 +02:00
|
|
|
.setDescription(pick);
|
|
|
|
message.inlineReply(embed);
|
|
|
|
},
|
|
|
|
};
|