Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-12 22:43:46 +00:00
parent 121e7c2c5e
commit 98eea391a1
1 changed files with 2 additions and 2 deletions

View File

@ -86,11 +86,11 @@ client.on('message', (channel, tags, message, self) => {
getRandomChatter(channel, { skipList: [ tags.username ] })
.then(user => {
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 {
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));