Bots Home
|
Create an App
daves test bot
Author:
dave1983dd
Description
Source Code
Launch Bot
Current Users
Created by:
Dave1983dd
/* * Title: Whats Your Porn Name * Author: Calvin06 * Version: 1.0 (02/08/13) * Summary: Assigns a random generated porn name to tippers * Description: Broadcasters set a minimum tip required to allow tippers to be assigned a random porn star name. After meeting the required tip amount, user's chat name will include their porn star name when they message in the main chat. Tracks total tips and last porn name assigned. Will generate and send sexy praises to the broadcaster in the main chat appearing to be authored by a qualifying tipper. Status: ------------------------- 02/09/13 - The app test bed appears to be preventing message testing. Have tested as much as possible but may still contain bugs. If your a broadcaster willing to test all the way through, please leave comments on results! Thank you! -- Calvin06 * TODO: Gender for first names when onTip provides gender, customize name seeds */ // vars var totalTipped = 0; var lastUserAssigned = null; var lastPornNameAssigned = null; var lastTipAmount = 0; var description = "What's My Porn Name? by calvin06 is running!"; var CONFIG_TIPPER_COLOR = '#EBFAFA'; var r=0; var i=0; cb.settings_choices = [ {name: 'tokens', type: 'int', minValue: 1, defaultValue: 5, label: "Minimum tip for porn name"}, {name: 'sexyadverts', type: 'int', minValue: 1, defaultValue: 5, label: "Minutes between random sex phrases"} //{name: 'customizefirstnames', type: 'str', minLength: 1, maxLength: 255, label: "Add more first names (separate by commas)"}, //{name: 'customizelastnames', type: 'str', minLength: 1, maxLength: 255, label: "Add more last names (separate by commas)"} ]; var FMname = new Array("Allen","Bob","Carlton","David","Ernie","Foster","George","Howard","Ian","Jeffery","Kenneth","Lawernce", "Michael","Nathen","Orson","Peter","Quinten","Reginald","Stephen","Thomas","Morris","Victor","Walter","Xavier", "Charles","Anthony","Gordon","Percy","Conrad","Quincey","Armand","Jamal","Andrew","Matthew","Mark","Gerald","Pipe", "Long","Axel","Buck","Seymour","Malcolm","Ace","Colton","Reese","Jason","Happy","Ty","Doc","BJ","Rod","Harry","Dick", "Miles","Willy","Ben","Hardin","Kayden","Stan The Man" ); /* Can't read gender onTip var FFname = new Array("Alice","Bonnie","Cassie","Donna","Ethel","Fannie","Grace","Heather","Jan","Crystal","Miss Kitty", "Julie","Marcia","Patricia","Mabel","Jennifer","Dorthey","Mary Ellen","Jacki","Jean","Betty","Jenna","Nikki", "Diane","Annette","Dawn","Jody","Karen","Mary Jane","Shannon","Stephanie","Kathleen","Emily","Brandy","Brook", "Tiffany","Angela","Christine","Debbie","Karla","Sandy","Marilyn","Brenda","Hayley","Linda","Ashley","Lexi","Starr" ); */ var Lname = new Array("Adams","Bowden","Conway","Darden","Edwards","Flynn","Gilliam","Holiday","Ingram","Johnson", "Kraemer","Hunter","McDonald","Nichols","Pierce","Sawyer","Saunders","Powers","Schroeder","Smith", "Douglas","Ward","Watson","Williams","Winters","Yeager","Ford","Forman","Dixon","Clark", "Churchill","Brown","Blum","Anderson","Black","Cavenaugh","Hampton","Jenkins","Jefferies","Prichard","Cummings", "Silver","Biggs","Mooreland","Hung","Dickenson","Cockland","Peters","Peterson","Spunks","Affluck","Swimmers", "Bush","Spearhead","Peener","Dicky","Pooner","Cocks","Probes","Woodley","Wood","Rimjobs","Hose","Nekkid", "Poonis","Longstroke","Cocklesworth","Sex","Wang","Pecker","Cox","Bones","Pipes","Steele","Bullseye","Rection", "Longsilver","Cockburn","Muff","Seamen","Hollywood","Woodson","Acer","Star","Busto","Dover","Glaze","Blaze","Love", "Ice" ); var pornExclamations = new Array("Bow chica wow wow","Wakka Chikka Wakka Chikka","Take me now","In My Pants!","The Porn King:", "The Love God:","Stuff me","Most Intimates of Intimates","You can Put it Anywhere","Don't Stop, Harder", "Put it right there","I'll take care of you tonight","Give it to me","Sex Machine:","That Feels Amazing", "Oh Yeah Right There","Don't Stop","Give it to me b4 my husband comes home","5 minutes?? Really?!", "This is my first time","Be gentle","My loins burn for you","Calvin06 wrote this app","Are these your panties", "I'm wearing snap-on leather pants","I'm wearing gold fish aquarium shoes","I am going to $%^@ you in your @#$# and @#%^& your #$#%%@", "You give me goose bumps","Your firm lips know my body too well","I would like to probe you in a slow repetitive rhythm", "Your saucy grin invites my touch","You smell of Jasmine and sex","Bring me to a vortex of heady sensations", "Startle me with your intimate kiss","Shackle my raging lust","Your long, liquid kiss rushes lust through me", "Your heart-shaped ass begs a squeeze","I'll bring you to a frenzied race to fulfillment","I'm clad only in panties", "I admire the full length of your powerful physique","My loins are aflame with desire for you" ); var userMap = {}; // handlers cb.onTip(function(tip) { // 1. track all tips received totalTipped += tip['amount']; // 2. see if user met assignment minimum if (tip['amount'] >= cb.settings.tokens) { updateName(tip['from_user']); lastUserAssigned = tip['from_user']; lastTipAmount = tip['amount']; } // 3. update panel cb.drawPanel(); }); cb.onDrawPanel(function(user) { return { 'template': '3_rows_of_labels', 'row1_label': 'Tips received:', 'row1_value': '' + totalTipped, 'row2_label': 'Porn name cost:', 'row2_value': '' + cb.settings.tokens, 'row3_label': 'Newest porn star:', 'row3_value': formatName(lastUserAssigned,12) + ' aka ' + formatName(lastPornNameAssigned,25) }; }); cb.onMessage(function (msg) { if (msg['user'] in userMap) { msg['background'] = CONFIG_TIPPER_COLOR; msg['m'] = "[aka " + userMap[msg['user']] + "]: " + msg['m']; } return msg; }); //helper functions function updateName(origName) { lastPornNameAssigned = getRandomName(); userMap[origName] = lastPornNameAssigned; var newSubject = "Get your own porn name for " + cb.settings.tokens + " tokens. Thanks " + origName + " aka " + lastPornNameAssigned; cb.log("Changing subject to: " + newSubject); cb.changeRoomSubject(newSubject); } function getRandomName() { i=Math.floor(Math.random() * FMname.length); r=Math.floor(Math.random() * Lname.length); return FMname[i] + " " + Lname[r]; } function formatName(val,length) { if (val === null) { return "--"; } else { return val.substring(0, length); } } function userMapSize() { var count = 0; for (var k in userMap) { if (userMap.hasOwnProperty(k)) { count++; } } return count; } function advert() { if (userMapSize() > 0) { var keys = Object.keys(userMap); var randomUser = keys[Math.floor(keys.length * Math.random())]; var randomPhrase = pornExclamations[Math.floor(Math.random() * pornExclamations.length)]; cb.chatNotice('Like porn star ' + randomUser + ' aka ' + userMap[randomUser] + ' once said, "' + randomPhrase + ' ' + cb.room_slug + '". \nTip ' + cb.settings.tokens + ' for your porn name!'); } cb.setTimeout(advert, (cb.settings.sexyadverts * 60000)); } function init() { cb.changeRoomSubject(description + 'Tip ' + cb.settings.tokens + ' to get your porn name!'); cb.setTimeout(advert, (cb.settings.sexyadverts * 60000)); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.