test
This commit is contained in:
parent
351b03c669
commit
455b1debba
|
@ -98,18 +98,18 @@ client.on('message', (channel, tags, message, self) => {
|
|||
})
|
||||
.catch(err => console.log('[ERR]', err));
|
||||
}
|
||||
// Cupid
|
||||
if (command === 'cupid') {
|
||||
// Simp
|
||||
if (command === 'simp') {
|
||||
// Get a random user but skip the user requesting a random user
|
||||
getRandomChatter(channel, { skipList: [tags.username] })
|
||||
.then(user => {
|
||||
if (user === null) {
|
||||
client.say(channel, `Sorry ${tags.username}, garunteed 0% match-making with no one else in chat! #smallstreamerproblems`);
|
||||
client.say(channel, `Sorry ${tags.username}, no one in chat to simp on! #smallstreamerproblems`);
|
||||
}
|
||||
else {
|
||||
let { name, type } = user;
|
||||
const percent = Math.floor(Math.random() * 100) + 1;
|
||||
client.say(channel, `/me @${tags.username} & @${name} have a ${percent}% match compadibility!`);
|
||||
client.say(channel, `/me @${tags.username}'s simp meter for @${name} is now ${percent}%!`);
|
||||
}
|
||||
})
|
||||
.catch(err => console.log('[ERR]', err));
|
||||
|
|
Loading…
Reference in New Issue