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));
|
.catch(err => console.log('[ERR]', err));
|
||||||
}
|
}
|
||||||
// Cupid
|
// Simp
|
||||||
if (command === 'cupid') {
|
if (command === 'simp') {
|
||||||
// Get a random user but skip the user requesting a random user
|
// Get a random user but skip the user requesting a random user
|
||||||
getRandomChatter(channel, { skipList: [tags.username] })
|
getRandomChatter(channel, { skipList: [tags.username] })
|
||||||
.then(user => {
|
.then(user => {
|
||||||
if (user === null) {
|
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 {
|
else {
|
||||||
let { name, type } = user;
|
let { name, type } = user;
|
||||||
const percent = Math.floor(Math.random() * 100) + 1;
|
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));
|
.catch(err => console.log('[ERR]', err));
|
||||||
|
|
Loading…
Reference in New Issue