Update 'node/boto.js'
This commit is contained in:
parent
2a35f5f701
commit
121e7c2c5e
|
@ -83,14 +83,14 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
// CMD | CHAT COMMANDS | Start
|
// CMD | CHAT COMMANDS | Start
|
||||||
if(command === 'rnguser') {
|
if(command === 'rnguser') {
|
||||||
// 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: [ userstate.username ] })
|
getRandomChatter(channel, { skipList: [ tags.username ] })
|
||||||
.then(user => {
|
.then(user => {
|
||||||
if(user === null) {
|
if(user === null) {
|
||||||
client.send(channel, `${userstate.username}, there was no one to choose.`);
|
client.send(channel, `${tags.username}, there was no one to choose.`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let { name, type } = user;
|
let { name, type } = user;
|
||||||
client.send(channel, `${userstate.username}, I chose "${name}" with type ${type}!`);
|
client.send(channel, `${tags.username}, I chose "${name}" with type ${type}!`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => console.log('[ERR]', err));
|
.catch(err => console.log('[ERR]', err));
|
||||||
|
|
Loading…
Reference in New Issue