Bots Home
|
Create an App
Stolen Lauren Bot
Author:
anonsoxx
Description
Source Code
Launch Bot
Current Users
Created by:
Anonsoxx
var numBansToday = 0; var numBansTotal = 0; var horniness = 0; var numHugs = 0; recentHuggers = []; noticeColours = [ {label: 'Light Purple', code: '#EDCAF9'}, {label: 'Dark Purple', code: '#4B0082'}, {label: 'Black', code: '#000000'}, ] var selectedBGColour = '#FFFFFF'; var selectedFGColour = '#000000'; cb.settings_choices = [ {name: 'Time_between_ban_notices', type: 'int', minValue: 1, maxValue: 1000, defaultValue: 120, label: "Time between showing the Notice message"}, {name: 'Time_between_hug_notices', type: 'int', minValue: 1, maxValue: 1000, defaultValue: 120, label: "Time between showing the Hug Notice message"}, {name: 'startBanCountToday', type: 'int', minValue: 0, maxValue: 1000, defaultValue: 0, label: "Number of bans to start at (Today)"}, {name: 'startBanCountTotal', type: 'int', minValue: 0, maxValue: 1000, defaultValue: 0, label: "Number of bans to start at (Total)"}, {name: 'startHorniness', type: 'int', minValue: 0, maxVaule: 50, defaultValue: 0, label: "How horny are you Miss Lauren? :o"}, {name:'noticeBG', type:'choice', choice1: 'Light Purple', choice2: 'Dark Purple', choice3: 'Black', label:'Notice background colour', defaultValue: 'Light Purple'}, {name:'noticeFG', type:'choice', choice1: 'Light Purple', choice2: 'Dark Purple', choice3: 'Black', label:'Notice foreground colour', defaultValue: 'Black'}, ]; cb.onEnter(function(user) { if(!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'])) { cb.limitCam_addUsers([user['user']]); } }); function ClearRecentHuggers() { recentHuggers = []; } cb.onMessage(function (msg) { var message = msg['m']; var user = msg['user']; var username = ""; HandleLimitCam(user); if(cb.room_slug === user && message == '/ban') { output(cb.room_slug + ' has banned a user!'); numBansToday += 1; numBansTotal += 1; message['X-Spam'] = true; } else if(cb.room_slug === user && message.substring(0, 9) == '/sethorny') { var horninessValue = message.substring(10); cb.log('Setting horniness to ' + horninessValue); horniness = horninessValue; message['X-Spam'] = true; } else if(cb.room_slug === user && message == '/horny') { output(cb.room_slug + ' is ' + horniness + '/10 on the horny scale!'); message['X-Spam'] = true; } else if(message == "!hug") { if(!recentHuggers.includes(user)) { output(user + ' sends hugs to Lauren'); numHugs += 1; message['X-Spam'] = true; recentHuggers.push(user); //cbjs.arrayJoin(recentHuggers, user); cb.log('Users in array: ' + recentHuggers); cb.log('Message: Hug timer: ' + cb.settings.Time_between_hug_notices); cb.setTimeout(ClearRecentHuggers, cb.settings.Time_between_hug_notices * 1000); } } return message; }); function output(message) { cb.sendNotice(message, '', selectedBGColour, selectedFGColour, "bold"); } function ShowBansMessage() { output('Lauren has banned ' + numBansToday + ' users today! (' + numBansTotal + ' total)'); cb.setTimeout(ShowBansMessage, cb.settings.Time_between_ban_notices * 1000); } function ShowHugsMessage() { output('The room has hugged Lauren ' + numHugs + ' times today!'); cb.setTimeout(ShowHugsMessage, cb.settings.Time_between_hug_notices * 1000); } function ShowHorninessMessage() { output() } function StartBlockingAnons() { if(!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), "anonsoxx")) { // Add me, cause Lauren likes me :) cb.limitCam_addUsers("anonsoxx"); } cb.log("Start Blocking Anons"); cb.limitCam_start("Now blocking anons. Type in the chat, or reload the room to view!"); cb.chatNotice("Blocking anons! :o Please login to view! If you are already logged in, please type in chat or refresh!"); } function HandleLimitCam(user) { if(!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { cb.log('Added ' + user + ' to the limit cam list'); cb.limitCam_addUsers([user]); } }; function Init() { StartBlockingAnons(); cb.log(cb.settings.noticeBG); cb.log(cb.settings.noticeFG); numBansToday = cb.settings['startBanCountToday']; numBansTotal = cb.settings['startBanCountTotal']; horniness = cb.settings['startHorniness']; for(i = 0; i < noticeColours.length; i++) { if(cb.settings['noticeBG'] == noticeColours[i].label) { selectedBGColour = noticeColours[i].code; } if(cb.settings['noticeFG'] == noticeColours[i].label) { selectedFGColour = noticeColours[i].code; } } cb.setTimeout(ShowHugsMessage, cb.settings.Time_between_hug_notices * 1000); cb.setTimeout(ShowBansMessage, cb.settings.Time_between_ban_notices * 1000); } Init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.