Bots Home
|
Create an App
chcknot
Author:
mistressadelle
Description
Source Code
Launch Bot
Current Users
Created by:
Mistressadelle
/* Title: "Rotating Notifier" bot Author: sexyhotwifeporn Version: 1.0.1 (18/02/2016) */ var i=1; cb.settings_choices = [ {name: 'msgonentry', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Display Welcome message privately on entry - set to no for busy rooms"}, {name:'rule', type:'str', required: false, label:'Welcome message',}, {name:'tipmsga', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Display Tip message privately whan someone tip- set to no for busy rooms"}, {name:'tipamount', type: 'int', minValue: 1, defaultValue: 10, label: 'Minimum tokens required for a thank you message'}, {name:'tipmsg', type:'str', required: false, label:'Tip Message',}, {name:'msg1', type:'str', required: false, label:'Message 1',}, {name:'msg2', type:'str', required: false, label:'Message 2',}, {name:'msg3', type:'str', required: false, label:'Message 3',}, {name:'msg4', type:'str', required: false, label:'Message 4',}, {name:'msg5', type:'str', required: false, label:'Message 5',}, {name:'msg6', type:'str', required: false, label:'Message 6',}, {name:'msg7', type:'str', required: false, label:'Message 7',}, {name:'msg8', type:'str', required: false, label:'Message 8',}, {name:'msg9', type:'str', required: false, label:'Message 9',}, {name:'msg10', type:'str', required: false, label:'Message 10',}, {name:'msg11', type:'str', required: false, label:'Message 11',}, {name:'msg12', type:'str', required: false, label:'Message 12',}, {name:'msg13', type:'str', required: false, label:'Message 13',}, {name:'msg14', type:'str', required: false, label:'Message 14',}, {name:'msg15', type:'str', required: false, label:'Message 15',}, {name:'msg16', type:'str', required: false, label:'Message 16',}, {name:'msg17', type:'str', required: false, label:'Message 17',}, {name:'msg18', type:'str', required: false, label:'Message 18',}, {name:'msgcolor', type:'str', label:'Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name:'background', type:'str', label:'Notice bcolor (html code default grey #ccc)', defaultValue: '#ccc'}, {name:'backgroundwcm', type:'str', label:'Welcome color (html code default grey #9F000F)', defaultValue: '#9F000F'}, {name:'background1', type:'str', label:'Welcome bcolor (html code default grey #ccc)', defaultValue: '#ccc'}, {name:'backgroundtip1', type:'str', label:'Tip Message color (html code default grey #9F000F)', defaultValue: '#9F000F'}, {name:'backgroundtip', type:'str', label:'Tip Message bcolor (html code default grey #ccc)', defaultValue: '#ccc'}, {name:'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 2, label: 'Delay in minutes between notices being displayed (minimum 1)'} ]; cb.onEnter(function(user) { if (cb.settings['msgonentry'] == 'yes') { cb.sendNotice('Welcome ' + user['user'] + '! ' + cb.settings['rule'],user['user'],cb.settings['background1'],cb.settings['backgroundwcm'],'bold'); } }); cb.onTip(function (tip) { if (parseInt(tip['amount']) >= cb.settings.tipamount,cb.settings['tipmsga'] == 'yes') { tipper = tip['from_user']; tipmsg=cb.settings.tipmsg; tipmsg = tipmsg.replace("[tipper]", tipper); cb.chatNotice(tipmsg, tipper,cb.settings['backgroundtip'],cb.settings['backgroundtip1'],'bold'); } }); function chatAd() { var msg; while (cb.settings['msg' + i] == 0) { //skip empty messages i++; if (i > 9) { //loop back to first message i=1; } } msg = cb.settings['msg' + i]; i++; if (i > 18) { //loop back to first message i=1; } cb.sendNotice(msg,'',cb.settings['background'],cb.settings['msgcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); function init() { } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.