twitch_bot/commands/love.js

25 lines
602 B
JavaScript
Raw Normal View History

2023-02-01 12:04:14 +01:00
const command = {
name: "love",
desc: "get the amount of love between two people!",
2023-02-02 23:37:42 +01:00
restricted: false,
2023-02-02 23:58:58 +01:00
mod: false,
2023-02-01 12:04:14 +01:00
run: async (client, msg, splitted) => {
if (splitted[2] === undefined || splitted[3] === undefined) {
2023-02-04 17:21:55 +01:00
await client.say(
msg.channelName,
`${msg.displayName}, supply 2 args PoroSad`
);
return;
2023-02-01 12:04:14 +01:00
}
2023-02-11 13:48:05 +01:00
await client.say(
msg.channelName,
`${msg.displayName}, ${splitted[2]} and ${
splitted[3]
} are about ${Math.floor(Math.random() * 100)}% in love with each other!`
);
2023-02-01 12:04:14 +01:00
},
};
2023-02-01 22:11:48 +01:00
module.exports = { command };