nyx/command/Fun/truth.js

22 lines
731 B
JavaScript
Raw Normal View History

const { MessageEmbed } = require("discord.js");
2022-01-31 20:01:40 +01:00
const tnd = require("../../util/Data/tnd.json");
module.exports = {
name: "truth",
description: "Gives a random question that has to be answered truthfully",
run: async (client, interaction, args) => {
const embed = new MessageEmbed()
2022-01-31 20:01:40 +01:00
.setAuthor({
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dyamic: true }),
})
2022-03-02 15:37:01 +01:00
.setTitle(tnd.truth[Math.round(Math.random() * tnd.truth.length - 1)])
.setColor(client.color)
2022-01-31 20:01:40 +01:00
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL(),
})
.setTimestamp();
interaction.followUp({ embeds: [embed] });
},
};