Bots Home
|
Create an App
SexyKinkyCouple20 Chat Bot
Author:
dbell19
Description
Source Code
Launch Bot
Current Users
Created by:
Dbell19
/* Bot: Chat Bot For SKC20 (Haylee) * * Modification History * 1.0 17 Oct 2017 by DBELL19 - Intitial release */ /* SETTINGS */ cb.settings_choices = [ { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for King Pineapple (choose colors below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of King Pineapple messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'aaText', label: 'Text to put in front of King Pineapple members messages (e.g. King Pineapple), the text will be put inside square brackets [ ]', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'King Pineapple' }, { name: 'aaIcon', label: 'Icon to put in front of King Pineapple members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'aaMinTip', label: 'Minimum tip to become King Pineapple member', type: 'int', minValue: 1, defaultValue: 3333 }, { name: 'aaAnnounce', label: 'Text to show when someone tips to become a King Pineapple member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined King Pineapple!!!!! <3 <3' }, { name: 'aaRainText', label: 'Text to use for King Pineapple advertisement (rain) lines, use blank for ascii Pineapple', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: ' ' }, { name: 'aaRainCount', label: 'Number of lines of King Pineapple rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'aaTextColor', label: 'King Pineapple members text color - HTML color code without starting \'#\' e.g. (FFFFFF is white, ff9616 is default orange )', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ff9616' }, { name: 'aaBGColor', label: 'King Pineapple members background color - HTML color code without starting \'#\' e.g. (000000 is black, 676769 is default grey)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '676769' }, { name: 'aaMemberList', label: 'List of current King Pineapple members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'acIcon', label: 'Icon to put in front of Kinkster members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'acMinTip', label: 'Minimum tip to become Kinkster member', type: 'int', minValue: 1, defaultValue: 1000 }, { name: 'acAnnounce', label: 'Text to show when someone tips to become a Kinkster member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined Kinksters :)!!! <3 <3' }, { name: 'acRainText', label: 'Text to use for Kinkster advertisement (rain) lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: '<3 <3 1000 <3 <3 Kinkster <3 <3 1000 <3 <3' }, { name: 'acRainCount', label: 'Number of lines of Kinkster rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'acTextColor', label: 'Kinkster text color - HTML color code without starting \'#\' e.g. (FFFFFF is white, 000000 is default black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'acBGColor', label: 'Kinkster background color - HTML color code without starting \'#\' e.g. (000000 is black, f9ffc8 is default pale yellow)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'f9ffc8' }, { name: 'acMemberList', label: 'List of current Kinkster users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'dbell19' }, { name: 'roomAD', label: 'Room Advertisement here', type: 'str', minLength: 1, maxLength: 2000, required: false, defaultValue: '' }, { name: 'roomADMin', label: 'Number of Minutes for Room Ad', type: 'int', minValue: 1, maxValue: 40, defaultValue: 10 }, { name: 'roomADS', label: 'Second Room Advertisement here', type: 'str', minLength: 1, maxLength: 2000, required: false, defaultValue: '' }, { name: 'roomADSMin', label: 'Number of Minutes for Second Room Ad', type: 'int', minValue: 1, maxValue: 40, defaultValue: 10 } ]; var aaMembers = {}; var acMembers = {}; // var CONFIG_AD_MINUTES = 8; // var CONFIG_ADS_MINUTES = 5; cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; if( isAC(u) ) { msg['background'] = '#' + cb.settings.acBGColor; msg['c'] = '#' + cb.settings.acTextColor; msg['m'] = ':' + cb.settings.acIcon + " " + msg['m']; } else if ( isAA(u) ) { msg['background'] = '#' + cb.settings.aaBGColor; msg['c'] = '#' + cb.settings.aaTextColor; msg['m'] = ':' + cb.settings.aaIcon + " " + msg['m']; } return msg; }); cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (amountTipped == cb.settings.aaMinTip) { // Make King Pineapple and announce it var announcement = cb.settings.aaAnnounce.replace("MEMBERNAME", tip['from_user']); makeAA(tip['from_user']); for (var i = 0; i < cb.settings.aaRainCount; i++) { cb.sendNotice(cb.settings.aaRainText); } cb.sendNotice(announcement); } else if(amountTipped == cb.settings.acMinTip) { var announcement = cb.settings.acAnnounce.replace("MEMBERNAME", tip['from_user']); makeAA(tip['from_user']); for (var i = 0; i < cb.settings.acRainCount; i++) { cb.sendNotice(cb.settings.acRainText); } cb.sendNotice(announcement); } }); function ad() { cb.sendNotice(cb.settings.roomAD); cb.setTimeout(ad, (cb.settings.roomADMin * 60000)); } function ads() { cb.sendNotice(cb.settings.roomADS); cb.setTimeout(ads, (cb.settings.roomADSMin * 60000)); } function init() { cb.sendNotice(cb.settings.roomAD); cb.setTimeout(ad, (cb.settings.roomADMin * 60000)); cb.sendNotice(cb.settings.roomADS); cb.setTimeout(ads, (cb.settings.roomADSMin * 60000)); } init(); function isAA(username) { return (username in aaMembers); } function isAC(username) { return (username in acMembers); } function makeAA(username) { aaMembers[username] = {'u': 1}; } function makeAC(username) { acMembers[username] = {'u': 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get King Pineapple Members members if (cb.settings.aaMemberList) { var aaMemberSettings = cb.settings.aaMemberList.split(','); for (var ii = 0; ii < aaMemberSettings.length; ii++) { var clean = aaMemberSettings[ii].toLowerCase().replace(/ /g,""); aaMembers[clean] = {'u': 1}; } } // Get Kinksters if (cb.settings.acMemberList) { var acMemberSettings = cb.settings.acMemberList.split(','); for (var ii = 0; ii < acMemberSettings.length; ii++) { var clean = acMemberSettings[ii].toLowerCase().replace(/ /g,""); acMembers[clean] = {'u': 1}; } } } grabSettings();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.