25 lines
635 B
JavaScript
25 lines
635 B
JavaScript
const command = {
|
|
name: "love",
|
|
desc: "get the amount of love between two people!",
|
|
restricted: false,
|
|
run: async (client, msg, splitted) => {
|
|
if (splitted[2] === undefined || splitted[3] === undefined) {
|
|
client.say(msg.channelName, `${msg.displayName}, supply 2 args PoroSad`);
|
|
return;
|
|
}
|
|
|
|
await client
|
|
.say(
|
|
msg.channelName,
|
|
`${msg.displayName}, ${splitted[2]} and ${
|
|
splitted[3]
|
|
} are about ${Math.floor(
|
|
Math.random() * 100
|
|
)}% in love with each other!`
|
|
)
|
|
.catch((err) => console.log(err));
|
|
},
|
|
};
|
|
|
|
module.exports = { command };
|