test cupid
This commit is contained in:
parent
0839a8fb06
commit
351b03c669
72
node/boto.js
72
node/boto.js
|
@ -6,16 +6,16 @@ const rp = require('request-promise'); // For RNG
|
||||||
console.log(colors.green.underline(process.env.API_HOST));
|
console.log(colors.green.underline(process.env.API_HOST));
|
||||||
|
|
||||||
const client = new tmi.Client({
|
const client = new tmi.Client({
|
||||||
options: { debug: true },
|
options: { debug: true },
|
||||||
connection: {
|
connection: {
|
||||||
secure: true,
|
secure: true,
|
||||||
reconnect: true
|
reconnect: true
|
||||||
},
|
},
|
||||||
identity: {
|
identity: {
|
||||||
username: process.env.TTV_BOT_USERNAME,
|
username: process.env.TTV_BOT_USERNAME,
|
||||||
password: process.env.TTV_BOT_OAUTH
|
password: process.env.TTV_BOT_OAUTH
|
||||||
},
|
},
|
||||||
channels: [ process.env.TTV_CHANNELS ]
|
channels: [ process.env.TTV_CHANNELS ]
|
||||||
});
|
});
|
||||||
|
|
||||||
client.connect();
|
client.connect();
|
||||||
|
@ -83,6 +83,7 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
// ================================
|
// ================================
|
||||||
// Chatbot Commands
|
// Chatbot Commands
|
||||||
// ================================
|
// ================================
|
||||||
|
// RNG User
|
||||||
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: [ tags.username ] })
|
getRandomChatter(channel, { skipList: [ tags.username ] })
|
||||||
|
@ -97,6 +98,22 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
})
|
})
|
||||||
.catch(err => console.log('[ERR]', err));
|
.catch(err => console.log('[ERR]', err));
|
||||||
}
|
}
|
||||||
|
// Cupid
|
||||||
|
if (command === 'cupid') {
|
||||||
|
// Get a random user but skip the user requesting a random user
|
||||||
|
getRandomChatter(channel, { skipList: [tags.username] })
|
||||||
|
.then(user => {
|
||||||
|
if (user === null) {
|
||||||
|
client.say(channel, `Sorry ${tags.username}, garunteed 0% match-making with no one else in chat! #smallstreamerproblems`);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let { name, type } = user;
|
||||||
|
const percent = Math.floor(Math.random() * 100) + 1;
|
||||||
|
client.say(channel, `/me @${tags.username} & @${name} have a ${percent}% match compadibility!`);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => console.log('[ERR]', err));
|
||||||
|
}
|
||||||
// CMD | Dice Roll
|
// CMD | Dice Roll
|
||||||
if(command === 'dice' ||
|
if(command === 'dice' ||
|
||||||
command === 'roll') {
|
command === 'roll') {
|
||||||
|
@ -105,7 +122,40 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
}
|
}
|
||||||
if(command === 'hibots') {
|
if(command === 'hibots') {
|
||||||
client.say(channel, `!hichatbots `)
|
client.say(channel, `!hichatbots `)
|
||||||
}
|
}
|
||||||
|
// 420 California
|
||||||
|
if (command === 'cali' ||
|
||||||
|
command === 'california' ||
|
||||||
|
command === 'californication' ||
|
||||||
|
command === '420' ||
|
||||||
|
command === '710' ||
|
||||||
|
command === '1130' ||
|
||||||
|
command === 'dab' ||
|
||||||
|
command === 'dab30' ||
|
||||||
|
command === 'roach' ||
|
||||||
|
command === 'roach30' ||
|
||||||
|
command === 'bowl' ||
|
||||||
|
command === 'bowl30' ||
|
||||||
|
command === 'weed' ||
|
||||||
|
command === 'dabs' ||
|
||||||
|
command === 'crumble' ||
|
||||||
|
command === 'shatter' ||
|
||||||
|
command === 'oil' ||
|
||||||
|
command === 'marijuana' ||
|
||||||
|
command === 'canabis' ||
|
||||||
|
command === 'reefer' ||
|
||||||
|
command === 'cronic' ||
|
||||||
|
command === 'wackytobacy' ||
|
||||||
|
command === 'edibles' ||
|
||||||
|
command === 'tincture' ||
|
||||||
|
command === 'tinctures' ||
|
||||||
|
command === 'hash' ||
|
||||||
|
command === 'cheech' ||
|
||||||
|
command === 'chong') {
|
||||||
|
client.say(channel, `/me "I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me." - Hunter S. Thompson`);
|
||||||
|
client.say(channel, `/me The Sarimoko Show is an adults only channel based in California where we've passed Prop 64: Adult Use of Marijuana Act.`);
|
||||||
|
client.say(channel, `/me Marijuana and Cannabis is not for everyone, please seek a professional for further guidance on THC and CBD use.`);
|
||||||
|
}
|
||||||
// CMD | Lurk
|
// CMD | Lurk
|
||||||
if(command === 'lurk' ||
|
if(command === 'lurk' ||
|
||||||
command === 'lurkin' ||
|
command === 'lurkin' ||
|
||||||
|
|
Loading…
Reference in New Issue