This will determine if you and another person are bound to be together! Ex use: "!loveRate @user"
const loveRate = `${Math.floor(Math.random() * 100) + 4}`;
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.startsWith(`${process.env.PREFIX}loveRate`)) {
let Caller = context.params.event.author.id;
let user = context.params.event.content.split(' ')[1];
if (!user) {
await lib.discord.channels['@0.1.1'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `You must use the command like: \`!loveRate (mention)\``,
});
} else if (user) {
await lib.discord.channels['@0.1.1'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `Okay... I have come to the decision that you and ${user} are ||${loveRate}% a match||`,
});
}
}