Bots Home
|
Create an App
aampornname
Author:
aamtest
Description
Source Code
Launch Bot
Current Users
Created by:
Aamtest
// vars var totalTipped = 0; var topTipAmount = 0; var topTipper = null; var lastUserAssigned = null; var lastPornNameAssigned = null; var CONFIG_TIPPER_COLOR = '#EBFAFA'; var CONFIG_TOP_TIPPER_COLOR = '#c2dffd'; var r=0; var i=0; cb.settings_choices = [ {name: 'tokens', type: 'int', minValue: 1, defaultValue: 5, label: "Minimum tip for Alter Ego"}, {name: 'sexyadverts', type: 'int', minValue: 1, defaultValue: 8, label: "Minutes between facts"}, {name: 'goal', type: 'int', minValue: 0, defaultValue: 0, label: "Token goal", required:false}, {name: 'goal_description', type: 'str', minLength: 0, maxLength: 255, label: 'Goal Description', required:false}, {name:'highlighttoptipper', type:'choice', choice1:'yes', choice2:'no', defaultValue:'yes', label: "Highlight the top tipper?"} ]; var FMname = new Array("Alfred", "Axel", "Rufus", "Engelbert", "Horatio", "Lord Jethro", "Luke", "Fanny", "Debbie", "Boris", "Ivana", "Margaret", "Margo", "Eureka", "Max", "Willy", "Doc", "Phera", "Jessica", "Steve", "Ruben", "Connie", "John E", "Tippa", "Duke", "Hugh", "Mona", "Ophelia", "Amanda", "Pat", "Eric", "Jim", "Ian", "Dan", "Mark", "Vannessa", "Greg", "Graham", "Sam", "Stitch", "Jake", "Finn", "Simon", "Nicole", "Stew", "Juan", "Matt", "Svetlana", "Gloria", "Jose", "Manuel", "Rodrigo", "Phil", "Wilma", "Biggus", "Woger", "Sharon", "Sylvia", "Incontentia", "Carlton", "Nikki", "Hamish", "Fuckwad", "Dickweed", "Choksonna", "Reginald", "Hugo", "Jimmy", "Doctor", "Professor", "Wade", "Bruce", "Hugh G", "Fonda", "General", "Quentin", "Jemima", "Jamal", "Priscilla" ); /* 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","Lou", "Al", "Homer", "I.P.", "I.R.", "O.J.","Christine","Debbie","Karla","Sandy","Marilyn","Brenda","Hayley","Linda","Ashley","Lexi","Starr" ); */ var Lname = new Array("Klothesoff", "Sexual", "Chopp", "Phukk", "Enis", "Cockburn", "Mangina", "Hyman", "Beaver", "Dikshit", "Rotch", "Payne", "Jass", "Bath", "Tinkle", "O'Problem", "Herpeace", "Normus", "Oxsbig", "Hanjaab", "Slick", "Sachs", "Hogg", "Ho","Holiday","Ingram","Johnson", "Ward","Watson","Winters","Yeager","Forman","Dixon","Brown","Blum","Black","Jenkins","Cummings", "Dumfarht", "Silver","Biggs","Hung","Dickenson","Cockland","Peters","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", "Yakoff", "Giovanni", "The Human", "The Dog", "Glaze", "Schwarzenpecker", "Ballz", "Piscine", "Backofdikz", "Witherspoon", "Jizz", "Felcher", "Blumpkin", "Chorros", "Sanchez", "Steamer", "Fecker", "Pinkeye", "Clyro", "Asscrack", "Bollocks", "Cameltoe", "Hershey-Squirts", "Galore", "Gaylord", "Derp", "McFlaps", "Wartz", "Rimmer", "The Horny Goat", "The Town Drunk", "The Troll", "The Great", "The Weak", "The Enlarged", "The Horny", "The Forbidden", "The Infected", "The Lonesome", "The Freeloader", "Junior", "Snr.", "Holmes", "The Virgin", "The Stupid", "The Incontinent", "Of Judea", "Chicken Caesar"); var pornExclamations = new Array("doesn't call the wrong number. You answered the wrong phone.", "used to have a street named after them, but it was changed because nobody crosses him and lives", "has a grizzly bear carpet in their room. It isn't dead, just afraid to move", "dies 20 years ago. Death just hasn't built up the courage to break the news", "is the reason for the lack of life on Mars", "fought Superman as a bet. The loser had to start wearing his underpants on the outside", "doesn't flush the toilet. The shit is scared out of it", "can cut through a hot knife with butter", "was pulled over by a cop. The cop was lucky to leave with a warning", "counted to infinity - twice", "is why Waldo is hiding", "flooped the pig", "can slam a revolving door", "will never have a heart attack. It's not foolish enough to try to attack", "can win a game of Connect4 in three moves", "once kicked a horse in the chin, thus creating giraffes", "won American Idol using sign language alone", "once wrote a song on the air guitar", "was originally cast in place of Predator in 'Alien vs. Predator' but the movie was too short", "doesn't read books but stares them down until he gets the information he wants", "doesn't wear a watch. HE decides what time it is.", "the kind of person that girls dream about at night -- it's better than seeing them in the light.", "has a very sympathetic face. It has everyone's sympathy.", "had had their face lifted so many times, they speak through their nose", "'s double chin has a double chin", "has a face like a flower. A cauliflower", "has wavy hair. It's waving goodbye", "has a big heart and a stomach to match", "has a strange growth on their neck - their head", "has a mind of his own, and he's welcome to it.", "has a mighty mind. Mighty empty", "is so stupid, he went to his dentist for bluetooth.", "is so stupid, he sat on the TV and watched the couch", "is so stupid, he stares at an orange juice carton for an hour because it says CONCENTRATE" ); var userMap = {}; // handlers cb.onTip(function(tip) { // 1. track all tips received totalTipped += tip['amount']; if (cb.settings.goal && cb.settings.goal !=0 && totalTipped > cb.settings.goal) totalTipped = cb.settings.goal; if (tip['amount'] > topTipAmount) { topTipAmount = tip['amount']; topTipper = tip['from_user']; } // 2. see if user met assignment minimum if (tip['amount'] >= cb.settings.tokens) { updateName(tip['from_user']); lastUserAssigned = tip['from_user']; } updateSubject(); // 3. update panel cb.drawPanel(); }); cb.onDrawPanel(function(user) { var row1label = 'Tips received:'; var row1value = '' + totalTipped; if (cb.settings.goal && cb.settings.goal !=0) { row1label = 'Tips received / goal:'; row1value = '' + totalTipped + ' / ' + cb.settings.goal; } var row2label = 'Star Tipper:'; var row2value = '--'; if (topTipper) { row2value = '' + formatName(topTipper,12) + ' (' + topTipAmount +')'; } return { 'template': '3_rows_of_labels', 'row1_label': row1label, 'row1_value': row1value, 'row2_label': row2label, 'row2_value': row2value, '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']; } if (msg['user'] == topTipper && cb.settings.highlighttoptipper == 'yes') { msg['background'] = CONFIG_TOP_TIPPER_COLOR; } return msg; }); function updateSubject() { cb.changeRoomSubject(getSubject()); } function getSubject() { var subject = 'What\'s My Alter Ego? is running! Tip ' + cb.settings.tokens + ' tokens to get your Alter Ego!'; if (cb.settings.goal_description != '') { subject += ' Goal is [' + cb.settings.goal_description +']'; } if (cb.settings.goal != 0) { subject += ' [' + tipsRemaining() + '] tokens left to reach goal!'; } return subject; } //helper functions function updateName(origName) { lastPornNameAssigned = getRandomName(); userMap[origName] = lastPornNameAssigned; } 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 tipsRemaining() { if (!cb.settings.goal) return 0; var r = cb.settings.goal - totalTipped; if (r < 0) { return 0; } else { return r; } } 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('Some say ' + randomUser + ' aka ' + userMap[randomUser] + ' ' + randomPhrase + '. \nTip ' + cb.settings.tokens + ' tokens to get your Alter Ego!'); } cb.setTimeout(advert, (cb.settings.sexyadverts * 60000)); } function init() { cb.changeRoomSubject('What\'s My AlterEgo? by TxStarz is running! Tip ' + cb.settings.tokens + ' tokens to get your Alter Ego!'); cb.setTimeout(advert, (cb.settings.sexyadverts * 60000)); } init();// JavaScript Document
© Copyright Chaturbate 2011- 2024. All Rights Reserved.