Bots Home
|
Create an App
One Armed Bandit Bot
Author:
pluckysub
Description
Source Code
Launch Bot
Current Users
Created by:
Pluckysub
/*~~~~~~~~~~~~~~~~~ ~~One Armed Bandit Bot ~~Version: 0.0.1 ~~Author: Pluckysub ~~Date: 2020-07-17 ~~~~~~~~~~~~~~~~~~~ */ cb.settings_choices = [ { name: 'theme', type: 'choice', label: 'Colour theme', choice1: 'Red', choice2: 'Gradient Red', choice3: 'Blue', choice4: 'Gradient Blue', choice5: 'Pink', choice6: 'Gradient Pink', choice7: 'Lilac', choice8: 'Gradient Lilac', choice9: 'Purple', choice10: 'Gradient Purple', choice11: 'Green', choice12: 'Gradient Green', choice13: 'Black', choice14: 'Gradient Black' }, { name: 'grad_dir', type: 'choice', label: 'If using a gradient, which direction would you like it? (dark to light)', choice1: 'to right', choice2: 'to right bottom', choice3: 'to right top', choice4: 'to top', choice5: 'to bottom', choice6: 'to left', choice7: 'to left bottom', choice8: 'to left top' }, { name: 'App_add_time', type: 'choice', label: 'How often should the app advertise itself?', choice1: 2, choice2: 5, choice3: 10, choice4: 15, choice5: 20, choice6: 30, choice7: 45, choice8: 60, defaultValue: 10 }, { name: 'token_value', type: 'int', label: 'How many tokens per spin?', minValue: 1, defaultValue: 50 }, { name: 'dice_sides', type: 'choice', label: '6 or 10 sided dice?', choice1: '6', choice2: '10', defaultValue: '6' }, {name: 'jackpot_1', type: 'str', label: 'Jackpot for trip 1s', default: '10 Bare Ass Spanks'}, {name: 'jackpot_2', type: 'str', label: 'Jackpot for trip 2s', default: 'Bare Pussy Spanks'}, {name: 'jackpot_3', type: 'str', label: 'Jackpot for trip 3s', default: '1 Minute Vibe'}, {name: 'jackpot_4', type: 'str', label: 'Jackpot for trip 4s', default: 'Blowjob Tease'}, {name: 'jackpot_5', type: 'str', label: 'Jackpot for trip 5s', default: 'Foot Worship'}, {name: 'jackpot_6', type: 'str', label: 'Jackpot for trip 6s', default: 'Booby Prize - Go Slap Your Balls'}, {name: 'jackpot_7', type: 'str', label: 'Jackpot for trip 7s', default: 'Oily Tit Worship'}, {name: 'jackpot_8', type: 'str', label: 'Jackpot for trip 8s', default: 'Dildo Riding'}, {name: 'jackpot_9', type: 'str', label: 'Jackpot for trip 9s', default: 'POV Pussy Worship'}, {name: 'jackpot_10', type: 'str', label: 'Jackpot for trip 10s', default: '10 Minutes Nude'}, {name: 'doubles_1', type: 'str', label: 'Double 1s', default: 'Blow Kiss'}, {name: 'doubles_2', type: 'str', label: 'Double 2s', default: 'Moan Your Name'}, {name: 'doubles_3', type: 'str', label: 'Double 3s', default: '1 Flash - Tippers Choice'}, {name: 'doubles_4', type: 'str', label: 'Double 4s', default: '1 Hard Spank'}, {name: 'doubles_5', type: 'str', label: 'Double 5s', default: '1 Minute Footjob'}, {name: 'doubles_6', type: 'str', label: 'Double 6s', default: 'Change Heels'}, {name: 'doubles_7', type: 'str', label: 'Double 7s', default: 'Stockings/Socks On or Off'}, {name: 'doubles_8', type: 'str', label: 'Double 8s', default: 'Panties Off/Choice of Panties'}, {name: 'doubles_9', type: 'str', label: 'Double 9s', default: 'ASMR for Tipper'}, {name: 'doubles_10', type: 'str', label: 'Double 10s', default: 'Ahegao'}, { name: 'forfeit', type: 'int', label: 'How many forfeits?', minValue: 0, maxValue: 10, defaultValue: 5 }, {name: 'forfeit_1', type: 'str', label: 'Forfeit 1', default: 'Play Again!'}, {name: 'forfeit_2', type: 'str', label: 'Forfeit 2', default: 'Go Watch 10 Minutes of BBC Porn'}, {name: 'forfeit_3', type: 'str', label: 'Forfeit 3', default: '100 Token Debt'}, {name: 'forfeit_4', type: 'str', label: 'Forfeit 4', default: 'Put on 1 Girly Piece of Clothing'}, {name: 'forfeit_5', type: 'str', label: 'Forfeit 5', default: '1000 Word Essay About Me!'}, {name: 'forfeit_6', type: 'str', label: 'Forfeit 6', default: '10 Minutes Sissy Hypno'}, {name: 'forfeit_7', type: 'str', label: 'Forfeit 7', default: 'Finger Your Butt!'}, {name: 'forfeit_8', type: 'str', label: 'Forfeit 8', default: 'No Cumming - 24 Hours'}, {name: 'forfeit_9', type: 'str', label: 'Forfeit 9', default: 'Go Blow A Dildo or Something Similar'}, {name: 'forfeit_10', type: 'str', label: 'Forfeit 10', default: 'Pour Ice In Your Underwear'} ]; var font_size, font_weight, font_colour, light_colour, dark_colour; var msg = '--'; if (cb.settings.theme == "Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "#FF5454"; dark_colour = "#990000"; } else if (cb.settings.theme == "Gradient Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF4D4D,#FF9999)"; dark_colour = "#990000"; } else if (cb.settings.theme == "Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "#b8beff"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Gradient Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#6470F7,#CCD0FF)"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "#ffdbec"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Gradient Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF70B8,#FFD1E8)"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "#C8A2C8"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Gradient Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#e6bee6,#ab78ab)"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "#e0a1ff"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Gradient Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#C757FF,#F0D1FF)"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "#abffae"; dark_colour = "#005203"; } else if (cb.settings.theme == "Gradient Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#64B967,#D6F0D7)"; dark_colour = "#005203"; } else if (cb.settings.theme == "Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "#b5b5b5"; dark_colour = "#000000"; } else if (cb.settings.theme == "Gradient Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#919191,#EBEBEB)"; dark_colour = "#000000"; } cb.onTip (function (tip) { var roll_1 = Math.floor(Math.random() * cb.settings.dice_sides + 1) var roll_2 = Math.floor(Math.random() * cb.settings.dice_sides + 1) var roll_3 = Math.floor(Math.random() * cb.settings.dice_sides + 1) var msg = " " if (tip['amount'] === cb.settings.token_value) { if (roll_1 & roll_2 & roll_3 === 1) { msg += (" 1 - 1 - 1 JACKPOT!!! " + cb.settings.jackpot_1) } if (roll_1 & roll_2 & roll_3 === 2) { msg += (" 2 - 2 - 2 JACKPOT!!! " + cb.settings.jackpot_2) } if (roll_1 & roll_2 & roll_3 === 3) { msg += (" 3 - 3 - 3 JACKPOT!!! " + cb.settings.jackpot_3) } if (roll_1 & roll_2 & roll_3 === 4) { msg += (" 4 - 4 - 4 JACKPOT!!! " + cb.settings.jackpot_4) } if (roll_1 & roll_2 & roll_3 === 5) { msg += (" 5 - 5 - 5 JACKPOT!!! " + cb.settings.jackpot_5) } if (roll_1 & roll_2 & roll_3 === 6) { msg += (" 6 - 6 - 6 JACKPOT!!! " + cb.settings.jackpot_6) } if (roll_1 & roll_2 & roll_3 === 7) { msg += (" 7 - 7 - 7 JACKPOT!!! " + cb.settings.jackpot_7) } if (roll_1 & roll_2 & roll_3 === 8) { msg += (" 8 - 8 - 8 JACKPOT!!! " + cb.settings.jackpot_8) } if (roll_1 & roll_2 & roll_3 === 9) { msg += (" 9 - 9 - 9 JACKPOT!!! " + cb.settings.jackpot_9) } if (roll_1 & roll_2 & roll_3 === 10) { msg += (" 10 - 10 - 10 JACKPOT!!! " + cb.settings.jackpot_10) } if ((roll_1 === 1 && roll_2 === 1 && roll_3 != 1) || (roll_1 != 1 && roll_2 === 1 && roll_3 === 1)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 2 && roll_2 === 2 && roll_3 != 2) || (roll_1 != 2 && roll_2 === 2 && roll_3 === 2)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 3 && roll_2 === 3 && roll_3 != 3) || (roll_1 != 3 && roll_2 === 3 && roll_3 === 3)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 4 && roll_2 === 4 && roll_3 != 4) || (roll_1 != 4 && roll_2 === 4 && roll_3 === 4)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 5 && roll_2 === 5 && roll_3 != 5) || (roll_1 != 5 && roll_2 === 5 && roll_3 === 5)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 6 && roll_2 === 6 && roll_3 != 6) || (roll_1 != 6 && roll_2 === 6 && roll_3 === 6)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 7 && roll_2 === 7 && roll_3 != 7) || (roll_1 != 7 && roll_2 === 7 && roll_3 === 7)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 8 && roll_2 === 8 && roll_3 != 8) || (roll_1 != 8 && roll_2 === 8 && roll_3 === 8)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 9 && roll_2 === 9 && roll_3 != 9) || (roll_1 != 9 && roll_2 === 9 && roll_3 === 9)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if ((roll_1 === 10 && roll_2 === 10 && roll_3 != 10) || (roll_1 != 10 && roll_2 === 10 && roll_3 === 10)) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " Double " + roll_2 + "! " + cb.settings["doubles_" + roll_2]) } if (roll_1 != roll_2 && roll_1 === roll_3) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " - Unlucky! Try again...") } if (roll_1 != roll_2 && roll_1 != roll_3 && roll_2 != roll_3 && cb.settings.forfeit != 0) { msg += (" " + roll_1 + " - " + roll_2 + " - " + roll_3 + " - Oh so unlucky... " + cb.settings['forfeit_' + (Math.floor(Math.random() * cb.settings.forfeit + 1))]) } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } }); function setJackpots() { for (var i = 1; i <= cb.settings.dice_sides; i++) { jackpot.push(cb.settings['jackpot_' + i]); } } function setDoubles() { for (var i = 1; i <= cb.settings.dice_sides; i++) { doubles_.push(cb.settings['doubles_' + i]); } } function setForfeits() { for (var i = 1; i <= cb.settings.dice_sides; i++) { forfeit.push(cb.settings['forfeit_' + i]); } } function advertise() { showAppAd(); cb.setTimeout(advertise, parseInt(cb.settings.App_add_time) * 60000); } function showAppAd(username) { var msg = ""; var chance = Math.floor(Math.random() * 2 + 1) var roll = Math.floor(Math.random() * cb.settings.dice_sides + 1) if (username != undefined) { msg = "Welcome, " + username + ", we have a game of slots. Are you going to try your luck? Only " + cb.settings.token_value + " tokens! \n"; } else { msg += "Test your luck with the One Armed Bandit and you could win "; if (chance === 1) { msg += (cb.settings['jackpot_' + roll]); } else { msg += (cb.settings['doubles_' + roll]); } msg += "! Only " + cb.settings.token_value + " tokens... Good Luck!" if (cb.settings.forfeit != 0) { msg += " Hope you avoid the forfeits!"; } } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); }; function init() { advertise(); showAppAd(); } init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.