Bots Home
|
Create an App
PRUEBAS
Author:
dylan5179
Description
Source Code
Launch Bot
Current Users
Created by:
Dylan5179
var tokenss = 0; var tokens = cb.settings.tokens; var boleta = cb.settings.boleta; var cantboletos = 0; var notickets = ""; var usuario = ""; var fichab = 0; var fichai = 0; var fichan = 0; var fichag = 0; var fichao = 0; var tiro=0; var Tipping = { Leaderboard: { All: [], ganadores: [] } }; cb.settings_choices = [ { name: 'tokens', type: 'int', minValue: 1, label: 'FICHA', defaultValue: 15 }, { name: 'boleta', type: 'int', minValue: 1, label: 'BOLETO', defaultValue: 33 }, { name: 'notice_wait_time', type: 'choice', label: 'In minutes, how often should the app advertise itself?', choice1: 5, choice2: 10, choice3: 15, choice4: 20, choice5: 25, choice6: 30, choice7: 45, choice8: 60, defaultValue: 10 }, {name: 'prize1', type: 'str', label: 'msg 1', defaultValue: '.'}, {name: 'prize2', type: 'str', label: 'msg 2', defaultValue: '.'}, {name: 'prize3', type: 'str', label: 'msg 3', defaultValue: '.'}, {name: 'prize4', type: 'str', label: 'msg 4', defaultValue: '.'}, {name: 'prize5', type: 'str', label: 'msg 5', defaultValue: '.'}, {name: 'prize6', type: 'str', label: 'msg 6', defaultValue: '.'}, {name: 'prize7', type: 'str', label: 'msg 7', defaultValue: '.'}, ]; cb.onTip(function (tip) { if ((parseInt(tip['amount']) >= tokens )&& ( parseInt(tip['amount']) != boleta) ) { var numberOfRolls = Math.floor(parseInt(tip['amount']) / tokens); for (var i = 0; i < numberOfRolls; i++) { fichas(tip['from_user']); } } if(parseInt(tip['amount']) == boleta) { boletos(tip.from_user); } }); cb.onEnter(function (user) { showAppAd(user['user']); }); cb.onMessage(function (msg) { if (msg.m.substring(0, 1) === "/") { msg["X-Spam"] = true; if (msg.user === cb.room_slug || msg.is_mod || (msg.user == "piscodelix" && settings.support_mode)) { /* Broadcaster or mod commands */ if (msg.m.substring(1, 10) === "ganadores") { getLeaderBoard(); } else if (msg.m.substring(1, 10) === "boletos") { boletosvendidos(); } else { cb.sendNotice("estas loco bb", '', '', '#006600', 'bold'); } } } return msg; }); function boletos(username) { cantboletos++; for (var i = 0; i <= cantboletos; i++) { notickets = 'Ticket_' + i +" "; } usuario = username; var azar1 = Math.floor(Math.random() * 6) + 1; fichab = "B" + azar1; var azar2 = Math.floor(Math.random() * 6) + 1; fichai = "I" + azar2; var azar3 = Math.floor(Math.random() * 6) + 1; fichan = "N" + azar3; var azar4 = Math.floor(Math.random() * 6) + 1; fichag = "G" + azar4; var azar5 = Math.floor(Math.random() * 6) + 1; fichao = "O" + azar5; var letras = " ("; var complemet0 = ")]."; var msg = notickets + usuario + letras + fichab + " " + fichai +" "+ fichan + " " + fichag + " " + fichao + complemet0; cb.sendNotice(msg, '', '', '#15A6B0', 'bold'); Tipping.Leaderboard.All.push({ boleto: notickets, usuario: usuario, letrab: fichab, letrai: fichai, letran: fichan, letrag: fichag, letrao: fichao, ganadob: false, ganadoi: false, ganadon: false, ganadog: false, ganadoo: false, yeny: false}); winer(); } function winer() { for (var i = 0; i < Tipping.Leaderboard.All.length; i++) { if((Tipping.Leaderboard.All[i].letrab == tokenss) && (Tipping.Leaderboard.All[i].ganadob == false)) { Tipping.Leaderboard.All[i].ganadob = true; msg1 = "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario+ ").you are closer to the prize"; cb.sendNotice(msg1, '', '', '#006600', 'bold'); } if((Tipping.Leaderboard.All[i].letrai == tokenss ) && (Tipping.Leaderboard.All[i].ganadoi == false )) { Tipping.Leaderboard.All[i].ganadoi = true; var msg1 = ""; msg1 = "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario+ ").you are closer to the prize"; cb.sendNotice(msg1, '', '', '#006600', 'bold'); } if((Tipping.Leaderboard.All[i].letran == tokenss) && (Tipping.Leaderboard.All[i].ganadon == false) ) { Tipping.Leaderboard.All[i].ganadon = true; var msg1 = ""; msg1 = "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario+ ").you are closer to the prize"; cb.sendNotice(msg1, '', '', '#006600', 'bold'); } if((Tipping.Leaderboard.All[i].letrag == tokenss) && (Tipping.Leaderboard.All[i].ganadog == false)) { Tipping.Leaderboard.All[i].ganadog = true; var msg1 = ""; msg1 = "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario+ ").you are closer to the prize"; cb.sendNotice(msg1, '', '', '#006600', 'bold'); } if((Tipping.Leaderboard.All[i].letrao == tokenss) && (Tipping.Leaderboard.All[i].ganadoo == false)) { Tipping.Leaderboard.All[i].ganadoo = true; var msg1 = ""; msg1 = "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario+ ").you are closer to the prize"; cb.sendNotice(msg1, '', '', '#006600', 'bold'); } if((Tipping.Leaderboard.All[i].ganadob == true)&&(Tipping.Leaderboard.All[i].ganadoi == true)&&(Tipping.Leaderboard.All[i].ganadon == true)&&(Tipping.Leaderboard.All[i].ganadog == true)&&(Tipping.Leaderboard.All[i].ganadoo == true) && (Tipping.Leaderboard.All[i].yeny == false)) { var msg1 = ""; msg1 += ' :bingo518 '+ " \n"; msg1 += "Congratulations " + Tipping.Leaderboard.All[i].boleto + " (" + Tipping.Leaderboard.All[i].usuario + "). \n"; msg1 += " YOU'VE WON \n" ; msg1 += ' :congrats01' + " \n"; cb.sendNotice(msg1, '', '', '#00FF00', 'bold'); Tipping.Leaderboard.All[i].yeny = true; Tipping.Leaderboard.ganadores.push({ bingo:Tipping.Leaderboard.All[i].usuario}); getLeaderBoard(); } } } function fichas(username) { tiro++; var die1 = Math.floor(Math.random() * 30) + 1; var imagen =''; var total = die1 ; if (total >= 1) { var prize = ""; if (total == '1') { tokenss = "B1"; imagen = ' :letrab ' + ' :nume1 '; prize = "stop"; } if (total == '2') { tokenss = "B2"; imagen = ' :letrab ' + ' :nume2 '; prize = "continue fucking"; } if (total == '3') { tokenss = "B3"; imagen = ' :letrab ' + ' :nume3 '; prize = "fuck faster"; } if (total == '4') { tokenss = "B4"; imagen = ' :letrab ' + ' :nume4 '; prize = "stop"; } if (total == '5') { tokenss = "B5"; imagen = ' :letrab ' + ' :nume5 '; prize = "continue fucking"; } if (total == '6') { tokenss = "B6"; imagen = ' :letrab ' + ' :nume6 '; prize = "fuck faster"; } if (total == '7') { tokenss = "I1"; imagen = ' :letrai ' + ' :nume1 '; prize = "stop"; } if (total == '8') { tokenss = "I2"; imagen = ' :letrai ' + ' :nume2 '; prize = "continue fucking"; } if (total == '9') { tokenss = "I3"; imagen = ' :letrai ' + ' :nume3 '; prize = "fuck faster"; } if (total == '10') { tokenss = "I4"; imagen = ' :letrai ' + ' :nume4 '; prize = "stop"; } if (total == '11') { tokenss = "I5"; imagen = ' :letrai ' + ' :nume5 '; prize = "continue fucking"; } if (total == '12') { tokenss = "I6"; imagen = ' :letrai ' + ' :nume6 '; prize = "fuck faster"; } if (total == '13') { tokenss = "N1"; imagen = ' :letran ' + ' :nume1 '; prize = "stop"; } if (total == '14') { tokenss = "N2"; imagen = ' :letran ' + ' :nume2 '; prize = "continue fucking"; } if (total == '15') { tokenss = "N3"; imagen = ' :letran ' + ' :nume3 '; prize = "fuck faster"; } if (total == '16') { tokenss = "N4"; imagen = ' :letran ' + ' :nume4 '; prize = "stop"; } if (total == '17') { tokenss = "N5"; imagen = ' :letran ' + ' :nume5 '; prize = "continue fucking"; } if (total == '18') { tokenss = "N6"; imagen = ' :letran ' + ' :nume6 '; prize = "fuck faster"; } if (total == '19') { tokenss = "G1"; imagen = ' :letrag ' + ' :nume1 '; prize = "stop"; } if (total == '20') { tokenss = "G2"; imagen = ' :letrag ' + ' :nume2 '; prize = "continue fucking"; } if (total == '21') { tokenss = "G3"; imagen = ' :letrag ' + ' :nume3 '; prize = "fuck faster"; } if (total == '22') { tokenss = "G4"; imagen = ' :letrag ' + ' :nume4 '; prize = "stop"; } if (total == '23') { tokenss = "G5"; imagen = ' :letrag ' + ' :nume5 '; prize = "continue fucking"; } if (total == '24') { tokenss = "G6"; imagen = ' :letrag ' + ' :nume6 '; prize = "fuck faster"; } if (total == '25') { tokenss = "O1"; imagen = ' :letrao ' + ' :nume1 '; prize = "stop"; } if (total == '26') { tokenss = "O2"; imagen = ' :letrao ' + ' :nume2 '; prize = "continue fucking"; } if (total == '27') { tokenss = "O3"; imagen = ' :letrao ' + ' :nume3 '; prize = "fuck faster"; } if (total == '28') { tokenss = "O4"; imagen = ' :letrao ' + ' :nume4 '; prize = "stop"; } if (total == '29') { tokenss = "O5"; imagen = ' :letrao ' + ' :nume5 '; prize = "continue fucking"; } if (total == '30') { tokenss = "O6"; imagen = ' :letrao ' + ' :nume6 '; prize = "fuck faster"; } } else { var prize = 'A Thank You!'; }; var msg = ""; msg += imagen + " \n"; msg += username + " has Launched a " + tokenss + "! \n".toUpperCase(); msg += "Roll #" + tiro + " | Prize: " + prize; cb.sendNotice(msg, '', '', '#15A6B0', 'bold'); winer(); tokenss = 0; } function getLeaderBoard(username) { var leaderboard = ""; for (var idx = 0; idx < Tipping.Leaderboard.ganadores.length && idx < 100; idx++) { if (Tipping.Leaderboard.ganadores[idx] !== undefined) { leaderboard += ' (' + Tipping.Leaderboard.ganadores[idx].bingo + ')\n'; cb.sendNotice(leaderboard, username, '', '#15A6B0', 'bold'); } } return leaderboard; } function boletosvendidos(username) { var leaderboard = ""; for (var idx = 0; idx < Tipping.Leaderboard.All.length && idx < 100; idx++) { if (Tipping.Leaderboard.All[idx] !== undefined) { leaderboard += ' (' + Tipping.Leaderboard.All[idx].boleto +" [" + Tipping.Leaderboard.All[idx].usuario + " ("+ Tipping.Leaderboard.All[idx].letrab +" "+ Tipping.Leaderboard.All[idx].letrai+" "+ Tipping.Leaderboard.All[idx].letran + " "+ Tipping.Leaderboard.All[idx].letrag + " " + Tipping.Leaderboard.All[idx].letrao+").]"+ ')\n'; cb.sendNotice(leaderboard, username, '', '#15A6B0', 'bold'); } else { cb.sendNotice("ya casi", username, '', '#15A6B0', 'bold'); } } return leaderboard; } function advertise() { showAppAd(); cb.setTimeout(advertise, parseInt(cb.settings.notice_wait_time) * 60000); } function showAppAd(username) { var msg = ""; msg += "We are playing BINGO: Created - by #Piscodelix_\n"; msg += "Each launch reveals a card." + " and one more chance to win.\n"; msg += "Tip " + boleta + " to buy your winning card. \n"; msg += "Tip " + tokens + "to reveal a card number. \n"; if (cb.settings.prize1 != '.') { msg += cb.settings.prize1 + " \n"; } if (cb.settings.prize2 != '.') { msg += cb.settings.prize2 + " \n"; } if (cb.settings.prize3 != '.') { msg += cb.settings.prize3 + " \n"; } if (cb.settings.prize4 != '.') { msg += cb.settings.prize4 + " \n"; } if (cb.settings.prize5 != '.') { msg += cb.settings.prize5 + " \n"; } if (cb.settings.prize6 != '.') { msg += cb.settings.prize6 + " \n"; } if (cb.settings.prize7 != '.') { msg += cb.settings.prize7 + " \n"; } cb.sendNotice(msg, username, '', '#15A6B0', 'bold'); } function init() { advertise(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.