2021-11-18 18:56:42 +01:00
|
|
|
const { MessageEmbed } = require("discord.js");
|
2022-01-31 20:01:40 +01:00
|
|
|
const tnd = require("../../util/Data/tnd.json");
|
2021-11-18 18:56:42 +01:00
|
|
|
module.exports = {
|
|
|
|
name: "dare",
|
|
|
|
description: "The maturity level of the topics the question can relate to",
|
|
|
|
run: async (client, interaction) => {
|
|
|
|
const embed = new MessageEmbed()
|
2022-01-31 20:01:40 +01:00
|
|
|
.setAuthor({
|
|
|
|
name: interaction.user.tag,
|
|
|
|
iconURL: interaction.user.displayAvatarURL({ dyamic: true }),
|
|
|
|
})
|
|
|
|
.setTitle(dares[Math.round(Math.random() * tnd.dare.length - 1)])
|
2021-11-18 18:56:42 +01:00
|
|
|
.setColor(client.color)
|
2022-01-31 20:01:40 +01:00
|
|
|
.setFooter({
|
|
|
|
text: `Made by ${client.author}`,
|
|
|
|
iconURL: client.user.displayAvatarURL(),
|
|
|
|
})
|
2021-11-18 18:56:42 +01:00
|
|
|
.setTimestamp();
|
|
|
|
interaction.followUp({ embeds: [embed] });
|
|
|
|
},
|
|
|
|
};
|