2021-06-12 12:53:51 +02:00
|
|
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
|
|
name: "simprate",
|
|
|
|
aliases: ["simp"],
|
|
|
|
description: "Check how simp is the user",
|
|
|
|
usage: "(@User)",
|
|
|
|
category: "Fun",
|
|
|
|
run: async (client, message, args) => {
|
|
|
|
let simp = Math.floor(Math.random() * 100);
|
|
|
|
if (message.mentions.users.first()) {
|
|
|
|
let target = message.mentions.users.first();
|
2021-09-06 12:38:25 +02:00
|
|
|
message.reply(
|
2021-06-12 12:53:51 +02:00
|
|
|
new MessageEmbed()
|
|
|
|
.setTitle(`${target.username}'s simp rate`)
|
|
|
|
.setDescription(`${target.username} is a ${simp}% simp`)
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
const target = message.author;
|
2021-09-06 12:38:25 +02:00
|
|
|
message.reply(
|
2021-06-12 12:53:51 +02:00
|
|
|
new MessageEmbed()
|
|
|
|
.setTitle(`${target.username}'s simp rate`)
|
|
|
|
.setDescription(`You are a ${simp}% simp`)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|