Update 'node/boto.js'
This commit is contained in:
parent
121e7c2c5e
commit
98eea391a1
|
@ -86,11 +86,11 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
getRandomChatter(channel, { skipList: [ tags.username ] })
|
getRandomChatter(channel, { skipList: [ tags.username ] })
|
||||||
.then(user => {
|
.then(user => {
|
||||||
if(user === null) {
|
if(user === null) {
|
||||||
client.send(channel, `${tags.username}, there was no one to choose.`);
|
client.say(channel, `${tags.username}, there was no one to choose.`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let { name, type } = user;
|
let { name, type } = user;
|
||||||
client.send(channel, `${tags.username}, I chose "${name}" with type ${type}!`);
|
client.say(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