Bots Home
|
Create an App
LushAutoBot
Author:
nice_alien_1
Description
Source Code
Launch Bot
Current Users
Created by:
Nice_Alien_1
var srchexpr, maxquestions; srchexpr = []; maxquestions = 10; cb.settings_choices = [ {name:'advertisement_wait_time', type:'int', label:'Notification Time (in minutes)',minValue: 1,maxValue: 60,defaultValue:7}, {name:'Level1', type:'str', minLength:1, maxLength:255, label:'Level #1'}, {name:'Level2', type:'str', minLength:1, maxLength:255, label:'Level #2'}, {name:'Level3', type:'str', minLength:1, maxLength:255, label:'Level #3'}, {name:'Level4', type:'str', minLength:1, maxLength:255, label:'Level #4'}, {name:'Level5', type:'str', minLength:1, maxLength:255, label:'Level #5'}, {name:'Level6', type:'str', minLength:1, maxLength:255, label:'Level #6'}, {name:'Level7', type:'str', minLength:1, maxLength:255, label:'Level #7'}, {name:'Level8', type:'str', minLength:1, maxLength:255, label:'Level #8'}, {name:'Level9', type:'str', minLength:1, maxLength:255, label:'Level #9'}, {name:'Level10', type:'str', minLength:1, maxLength:255, label:'Level #10'}, {name:'Random', type:'str', minLength:1, maxLength:255, label:'Random Level'}, {name:'Special1', type:'str', minLength:1, maxLength:255, label:'Special command #1'}, {name:'Special2', type:'str', minLength:1, maxLength:255, label:'Special command #2'}, {name:'Special3', type:'str', minLength:1, maxLength:255, label:'Special command #3'}, {name:'Special4', type:'str', minLength:1, maxLength:255, label:'Special command #4'}, {name: 'Auto1', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'no', label: "Auto thank for tips?"}, {name:'Thanks15', type:'str', minLength:1, maxLength:255, label:'Thank you for 15-98'}, {name:'Thanks100', type:'str', minLength:1, maxLength:255, label:'Thank you for 100-499'}, {name:'Thanks500', type:'str', minLength:1, maxLength:255, label:'Thank you for 500-998'}, {name:'Thanks1000', type:'str', minLength:1, maxLength:255, label:'Thank you for 1000+'}, {name:'ThanksX', type:'str', minLength:1, maxLength:255, label:'Thank you for random'}, {name: 'Auto2', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'no', label: "Use Auto Answer bot?"}, {name: 'item1q', type: 'str', label: 'Question 1 keywords (no spaces)', defaultValue: 'what/how&size/big&boob/boobs/tits/tit'}, {name: 'item1a', type: 'str', label: 'Question 1 answer', defaultValue: '36D'}, {name: 'item2q', type: 'str', label: 'Question 2 keywords', defaultValue: 'what/have&twitter', required: false}, {name: 'item2a', type: 'str', label: 'Question 2 answer', defaultValue: '@username', required: false}, {name: 'item3q', type: 'str', label: 'Question 3 keywords', defaultValue: 'what/have&instagram', required: false}, {name: 'item3a', type: 'str', label: 'Question 3 answer', defaultValue: '@username', required: false}, {name: 'item4q', type: 'str', label: 'Question 4 keywords', defaultValue: 'boobs/tits&real/natural/fake', required: false}, {name: 'item4a', type: 'str', label: 'Question 4 answer', defaultValue: "Don't ask please", required: false}, {name: 'item5q', type: 'str', label: 'Question 5 keywords', defaultValue: 'what&are&tats/tattoos/ink', required: false}, {name: 'item5a', type: 'str', label: 'Question 5 answer', defaultValue: ':readbio', required: false}, {name: 'item6q', type: 'str', label: 'Question 6 keywords', defaultValue: 'show/open/zoom&boobs/boob/bobs/tits/pussy/ass', required: false}, {name: 'item6a', type: 'str', label: 'Question 6 answer', defaultValue: 'mute-Please tip for requests', required: false}, {name: 'item7q', type: 'str', label: 'Question 7 keywords', defaultValue: 'slut/whore/bitch/bb', required: false}, {name: 'item7a', type: 'str', label: 'Question 7 answer', defaultValue: 'mute-Please do not use rude words in my room', required: false}, {name: 'item8q', type: 'str', label: 'Question 8 keywords', defaultValue: 'watch&my&cam', required: false}, {name: 'item8a', type: 'str', label: 'Question 8 answer', defaultValue: 'mute-Please do not spam my room', required: false}, {name: 'item9q', type: 'str', label: 'Question 9 keywords', defaultValue: '', required: false}, {name: 'item9a', type: 'str', label: 'Question 9 answer', defaultValue: '', required: false}, {name: 'item10q', type: 'str', label: 'Question 10 keywords', defaultValue: '', required: false}, {name: 'item10a', type: 'str', label: 'Question 10 answer', defaultValue: '', required: false}, {name: 'mutegreygraphics', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute grey graphics?"}, {name: 'mutestickykeys', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute sticky keys?"}, {name: 'muteallcaps', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute all caps?"}, ]; cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. MY LOVENSE VIBRATOR IS SET TO REACT TO YOUR TIPS. THERE ARE 10 LEVELS OF INTENSITY', user['user'], '#DBFFDB', '', 'bold'); displayLevels(user); }); function displayLevels(user) { var username = ''; if(user) username = user['user']; var notices = '####### Lovense Level #######'; for(var i=1; i<=10;i++) { if(cb.settings['Level' + i]) notices += '\nLevel #'+ i +': ' + cb.settings['Level'+i]; } notices += '\n###### Special commands ######'; for(var i=1; i<=10;i++) { if(cb.settings['Special' + i]) notices += '\nSpecial command #'+ i +': ' + cb.settings['Special'+i]; } notices += '\n########################'; cb.sendNotice(notices, username, '#E6FFFF', '#003399', 'bold'); if(!user || user == null) cb.setTimeout(displayLevels, cb.settings.advertisement_wait_time * 60000); } cb.onTip(function(e) { n = e.from_user if (cb.settings.Auto1 == 'yes'){ if (e['amount'] >14 && e['amount']<99) { cb.chatNotice(cb.settings.Thanks15+" "+n, "", '#FFFFFF', '#00a5FF', 'bold'); } if (e['amount'] >99 && e['amount']<500) { cb.chatNotice(cb.settings.Thanks100+" "+n, "", '#FFFFFF', '#0101DF', 'bold'); } if (e['amount']>499 && e['amount']<999) { cb.chatNotice(cb.settings.Thanks500+" "+n, "", '#FFFFFF', '#FF0000', 'bold'); } if (e['amount']>999) { cb.chatNotice(cb.settings.Thanks1000+" "+n, "", '#FFFFFF', '#FA58F4', 'bold'); } if (e['amount']==99) { cb.chatNotice(cb.settings.ThanksX+" "+n, "", '#FFFFFF', '#007700', 'bold'); } } }) function checkmsg(msg) { var i, tmpmsg, re, ans; tmpmsg = msg['m']; for (i = 1; i <= maxquestions; i++) { ans = cb.settings['item' + i + 'a']; re = new RegExp(srchexpr[i], "i"); if (srchexpr[i].length > 0) { if (tmpmsg.search(re) != -1) { if (ans.search('mute-') != -1) { msg['X-Spam'] = true; cb.chatNotice(ans.replace('mute-',''),msg['user'],'','','bold'); } else { cb.chatNotice('Answer: ' + ans,'','','','bold'); } } } } if ((tmpmsg.search(/:\b/) != -1) && (!msg['has_tokens']) && (cb.settings['mutegreygraphics'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No graphics please',msg['user'],'','','bold'); } if ((tmpmsg.search(/(.)\1{3}/) != -1) && (cb.settings['mutestickykeys'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No sticky keys please',msg['user'],'','','bold'); } if ((tmpmsg === tmpmsg.toUpperCase()) && (cb.settings['muteallcaps'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No all caps please',msg['user'],'','','bold'); } if (msg['X-Spam'] == true) { cb.chatNotice(msg['user'] + "'s message has been muted"); } } function retest() { var str, keywordarray, keywordstr, expressout, k, i, j; for (k = 1; k <= maxquestions; k++) { expressout = ""; str = cb.settings['item' + k + 'q']; if (str != null && str.length > 0) { keywordarray = str.split("&"); for (i = 0; i <= (keywordarray.length - 1); i++) { keywordstr = keywordarray[i].split("/"); expressout += "("; for (j = 0; j <= (keywordstr.length - 1); j++) { if (j != 0) { expressout += '|'; } expressout += "(?=.*" + keywordstr[j] + ")"; } expressout += ")"; } } srchexpr[k] = expressout; } } cb.onMessage(function (msg) { if (cb.settings.Auto2 == 'yes') {checkmsg(msg);} return msg; }); function init() { displayLevels(); retest(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.