Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-12 22:42:52 +00:00
parent 2a35f5f701
commit 121e7c2c5e
1 changed files with 3 additions and 3 deletions

View File

@ -83,14 +83,14 @@ client.on('message', (channel, tags, message, self) => {
// CMD | CHAT COMMANDS | Start
if(command === 'rnguser') {
// Get a random user but skip the user requesting a random user
getRandomChatter(channel, { skipList: [ userstate.username ] })
getRandomChatter(channel, { skipList: [ tags.username ] })
.then(user => {
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 {
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));