Bots Home
|
Create an App
DomBot
Author:
yes_mistress
Description
Source Code
Launch Bot
Current Users
Created by:
Yes_Mistress
var test = 0; var acts = ["Just lie there", "Gentle Strokes", "Faster", "Slower","Panties Off", "Panties On", "Fuck Ass with hair brush", "Fuck Ass with Dildo","Cum!","No Cumming"]; var votes = [1,0,0,0,0,1,0,0,0,0]; var myvotes = [0,1,2]; var vc = acts.length; let ordered = 0; let highest = 1; function count(vote) { let vtlen = votes.length; votes[vote] = votes[vote] + 1; let oldhigh = highest; for (let i = 0; i < vtlen; i++) { if (votes[i] > highest) { highest = votes[i]; ordered = i; } } if (oldhigh != highest) { cb.changeRoomSubject('Current Orders: ' + acts[ordered]); } cb.sendNotice("voted to " + acts[vote]); } cb.onMessage(function (msg) { let com = msg['m'].substr(0,2); let rest = msg['m'].substr(2); if (msg['user'] == cb.room_slug) { // Message was sent by broadcaster if (com == '/s') { cb.changeRoomSubject(rest.trim()); msg['m'] = ""; msg["X-Spam"] = true; } } if (com == '/1') { count(1); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/2') { count(2); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/3') { count(3); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/4') { count(4); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/5') { count(5); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/6') { count(6); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/7') { count(7); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/8') { count(8); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/9') { count(9); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/0') { count(0); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/m') { let mtext = "Voting Options. Type /number \n"; for (let i = 0; i < vc; i++) { mtext += '/' + i + ' : ' + acts[i] + "\n"; } mtext = mtext.slice(0, -1); cb.sendNotice(mtext,msg['user']); msg['m'] = ""; msg["X-Spam"] = true; } if (com == '/v') { let mtext = "Voting Tally\n"; for (let i = 0; i < vc; i++) { mtext += acts[i] + ': ' + votes[i] + " votes\n"; } mtext = mtext.slice(0, -1); cb.sendNotice(mtext,msg['user']); msg['m'] = ""; msg["X-Spam"] = true; } return msg; }); cb.onStart(user => { cb.sendNotice("Type '/s New Room Subject' to change.",cb.room_slug); }); cb.settings_choices = [ { name: 'welcome', label: 'Default Welcome: (This will greet your viewers as they enter your room)', type: 'str', minLength: 1, maxLength: 255, defaultValue: "Welcome Goddess! I am here to carry out your orders. Please type /m for voting numbers and /<number> to vote." }, { name: 'notification', label: 'Regular ', type: 'str', minLength: 1, maxLength: 255, defaultValue: 'Type /m to see voting options. /v to see current tally' }, { name: 'timer', label: 'How often should the viewers see the notification? (This timer is in seconds, and 60 seconds are in 1 minute)', type: 'int', minValue: 1, maxValue: 6000, defaultValue: 300 }, ]; cb.onEnter(function(user) { cb.sendNotice("Hello, " + user['user'] + "! " + cb.settings.welcome, user['user']); }); cb.onTip(function(tip) { cb.sendNotice(tip.from_user + "! " + cb.settings.thanks); }); function notify() { cb.chatNotice(cb.settings.notification); cb.setTimeout(notify, 1000 * cb.settings.timer); } cb.setTimeout(notify, 1000 * cb.settings.timer);
© Copyright Chaturbate 2011- 2026. All Rights Reserved.