Update 'node/boto.js'
This commit is contained in:
parent
98eea391a1
commit
624779fabf
15
node/boto.js
15
node/boto.js
|
@ -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.say(channel, `${tags.username}, there was no one to choose.`);
|
client.say(channel, `Sorry ${tags.username}, this is embarrassing... There was no one to choose from! #smallstreamerproblems Bleep-Bloop!`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let { name, type } = user;
|
let { name, type } = user;
|
||||||
client.say(channel, `${tags.username}, I chose "${name}" with type ${type}!`);
|
client.say(channel, `${tags.username} exluded, at random I choose "${name}" cuz they're such an amazing ${type}!`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => console.log('[ERR]', err));
|
.catch(err => console.log('[ERR]', err));
|
||||||
|
@ -243,6 +243,17 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
command === 'tweet') {
|
command === 'tweet') {
|
||||||
client.say(channel, `/me Twitter | https://twitter.com/sarimoko_o `);
|
client.say(channel, `/me Twitter | https://twitter.com/sarimoko_o `);
|
||||||
}
|
}
|
||||||
|
if(command === 'twitter' ||
|
||||||
|
command === 'tweet') {
|
||||||
|
client.say(channel, `/me Twitter | https://twitter.com/sarimoko_o `);
|
||||||
|
}
|
||||||
|
// MINI GAME
|
||||||
|
if(command === 'beta' ||
|
||||||
|
command === 'test')
|
||||||
|
const result = Math.floor(Math.random() * 100) + 1;
|
||||||
|
client.say(channel, `/me Bleep-Bloop! @${tags.username} has ${result}% resistence to bullshit!`);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// Uptime
|
// Uptime
|
||||||
// Viewers
|
// Viewers
|
||||||
|
|
Loading…
Reference in New Issue