From 351b03c6699524f4e9a4d0cd75ffa03be02b9880 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Wed, 16 Feb 2022 15:57:20 -0800 Subject: [PATCH] test cupid --- node/boto.js | 72 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/node/boto.js b/node/boto.js index 883d811..278e812 100644 --- a/node/boto.js +++ b/node/boto.js @@ -6,16 +6,16 @@ const rp = require('request-promise'); // For RNG console.log(colors.green.underline(process.env.API_HOST)); const client = new tmi.Client({ - options: { debug: true }, - connection: { - secure: true, - reconnect: true - }, - identity: { - username: process.env.TTV_BOT_USERNAME, - password: process.env.TTV_BOT_OAUTH - }, - channels: [ process.env.TTV_CHANNELS ] + options: { debug: true }, + connection: { + secure: true, + reconnect: true + }, + identity: { + username: process.env.TTV_BOT_USERNAME, + password: process.env.TTV_BOT_OAUTH + }, + channels: [ process.env.TTV_CHANNELS ] }); client.connect(); @@ -83,6 +83,7 @@ client.on('message', (channel, tags, message, self) => { // ================================ // Chatbot Commands // ================================ + // RNG User if(command === 'rnguser') { // Get a random user but skip the user requesting a random user getRandomChatter(channel, { skipList: [ tags.username ] }) @@ -97,6 +98,22 @@ client.on('message', (channel, tags, message, self) => { }) .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 if(command === 'dice' || command === 'roll') { @@ -105,7 +122,40 @@ client.on('message', (channel, tags, message, self) => { } if(command === 'hibots') { 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 if(command === 'lurk' || command === 'lurkin' ||