2021-09-17 18:28:39 +02:00
|
|
|
const { MessageEmbed } = require("discord.js");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: "simprate",
|
|
|
|
description: "Check how simp is the user",
|
|
|
|
usage: "(@User)",
|
|
|
|
category: "Fun",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
type: 6,
|
|
|
|
name: "user",
|
|
|
|
description: "The user you want to see",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
run: async (client, interaction, args) => {
|
2021-11-18 18:56:42 +01:00
|
|
|
const simp = Math.floor(Math.random() * 100);
|
|
|
|
const user = interaction.guild.members.cache.get(args[0]);
|
2021-09-17 18:28:39 +02:00
|
|
|
interaction.followUp({
|
|
|
|
embeds: [
|
|
|
|
new MessageEmbed()
|
|
|
|
.setTitle(`${user.user.username}'s simp rate`)
|
|
|
|
.setDescription(`${user.user.username} is a ${simp}% simp`)
|
|
|
|
.setColor(client.color)
|
2021-11-18 18:56:42 +01:00
|
|
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
|
|
|
.setTimestamp(),
|
2021-09-17 18:28:39 +02:00
|
|
|
],
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|