woomy/src/commands/rate.js

42 lines
998 B
JavaScript
Raw Permalink Normal View History

2020-01-25 10:02:43 +00:00
exports.run = async (client, message, args) => {
if (!args[0])
return message.channel.send(
`<:error:466995152976871434> What am I meant to rate? Usage: \`${client.commands.get(`rate`).help.usage}\``
);
2020-08-16 08:20:26 +00:00
var rating = [
"0/10",
"1/10",
"2/10",
"3/10",
"4/10",
"5/10",
"6/10",
"7/10",
"8/10",
"9/10",
"10/10"
];
2020-05-09 06:43:30 +00:00
2020-08-16 08:20:26 +00:00
if (message.content.includes("@everyone") || message.content.includes("@here") || message.content.includes("<@&")) {
return message.channel.send('>:(');
};
2020-05-09 06:43:30 +00:00
2020-01-25 10:02:43 +00:00
let mess = rating.random();
message.channel.send(`<:star:618393201501536258> I give ${args.join(" ")} a **${mess}**`);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: "User",
requiredPerms: []
};
exports.help = {
name: "rate",
category: "Fun",
description: "Gives something a rating from 0-10",
usage: "rate [thing]"
};