Bots Home
|
Create an App
Brazilian Couple Notifier
Author:
braziliancouple01
Description
Source Code
Launch Bot
Current Users
Created by:
Braziliancouple01
/* Title: "Adele Rotating Notifier" bot Author: Mistress_Adelee Version: 0.0.4 (6/12/2020) A simple rotating notifier bot with 100 notification entries. Only options are to set color and display interval. Messages are rotated in sequence. Message 1 can also be displayed on room entry privately. Messages from broadcaster and users with rainbow background. Version: 0.0.4 (6/12/2020) added rainbow background for messages, gray user text replacement Version: 0.0.3 (18/11/2020) added more notices */ var i=1; //функции нотисов cb.settings_choices = [ {name: 'toc1', label: 'Section_1_Notices************', type: 'choice',required: false}, {name: 'msgonentry', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Display Message 1 privately on entry - set to no for busy rooms"}, {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:'msg19', type:'str', required: false, label:'Message 19',}, {name:'msg20', type:'str', required: false, label:'Message 20',}, {name:'msg21', type:'str', required: false, label:'Message 21',}, {name:'msg22', type:'str', required: false, label:'Message 22',}, {name:'msg23', type:'str', required: false, label:'Message 23',}, {name:'msg24', type:'str', required: false, label:'Message 24',}, {name:'msg25', type:'str', required: false, label:'Message 25',}, {name:'msg26', type:'str', required: false, label:'Message 26',}, {name:'msg27', type:'str', required: false, label:'Message 27',}, {name:'msg28', type:'str', required: false, label:'Message 28',}, {name:'msg29', type:'str', required: false, label:'Message 29',}, {name:'msg30', type:'str', required: false, label:'Message 30',}, {name:'msg31', type:'str', required: false, label:'Message 31',}, {name:'msg32', type:'str', required: false, label:'Message 32',}, {name:'msg33', type:'str', required: false, label:'Message 33',}, {name:'msg34', type:'str', required: false, label:'Message 34',}, {name:'msg35', type:'str', required: false, label:'Message 35',}, {name:'msg36', type:'str', required: false, label:'Message 36',}, {name:'msg37', type:'str', required: false, label:'Message 37',}, {name:'msg38', type:'str', required: false, label:'Message 38',}, {name:'msg39', type:'str', required: false, label:'Message 39',}, {name:'msg40', type:'str', required: false, label:'Message 40',}, {name:'msg41', type:'str', required: false, label:'Message 41',}, {name:'msg42', type:'str', required: false, label:'Message 42',}, {name:'msg43', type:'str', required: false, label:'Message 43',}, {name:'msg44', type:'str', required: false, label:'Message 44',}, {name:'msg45', type:'str', required: false, label:'Message 45',}, {name:'msg46', type:'str', required: false, label:'Message 46',}, {name:'msg47', type:'str', required: false, label:'Message 47',}, {name:'msg48', type:'str', required: false, label:'Message 48',}, {name:'msg49', type:'str', required: false, label:'Message 49',}, {name:'msg50', type:'str', required: false, label:'Message 50',}, {name:'msg51', type:'str', required: false, label:'Message 51',}, {name:'msg52', type:'str', required: false, label:'Message 52',}, {name:'msg53', type:'str', required: false, label:'Message 53',}, {name:'msg54', type:'str', required: false, label:'Message 54',}, {name:'msg55', type:'str', required: false, label:'Message 55',}, {name:'msg56', type:'str', required: false, label:'Message 56',}, {name:'msg57', type:'str', required: false, label:'Message 57',}, {name:'msg58', type:'str', required: false, label:'Message 58',}, {name:'msg59', type:'str', required: false, label:'Message 59',}, {name:'msg60', type:'str', required: false, label:'Message 60',}, {name:'msg61', type:'str', required: false, label:'Message 61',}, {name:'msg62', type:'str', required: false, label:'Message 62',}, {name:'msg63', type:'str', required: false, label:'Message 63',}, {name:'msg64', type:'str', required: false, label:'Message 64',}, {name:'msg65', type:'str', required: false, label:'Message 65',}, {name:'msg66', type:'str', required: false, label:'Message 66',}, {name:'msg67', type:'str', required: false, label:'Message 67',}, {name:'msg68', type:'str', required: false, label:'Message 68',}, {name:'msg69', type:'str', required: false, label:'Message 69',}, {name:'msg70', type:'str', required: false, label:'Message 70',}, {name:'msg71', type:'str', required: false, label:'Message 71',}, {name:'msg72', type:'str', required: false, label:'Message 72',}, {name:'msg73', type:'str', required: false, label:'Message 73',}, {name:'msg74', type:'str', required: false, label:'Message 74',}, {name:'msg75', type:'str', required: false, label:'Message 75',}, {name:'msg76', type:'str', required: false, label:'Message 76',}, {name:'msg77', type:'str', required: false, label:'Message 77',}, {name:'msg78', type:'str', required: false, label:'Message 78',}, {name:'msg79', type:'str', required: false, label:'Message 79',}, {name:'msg80', type:'str', required: false, label:'Message 80',}, {name:'msg81', type:'str', required: false, label:'Message 81',}, {name:'msg82', type:'str', required: false, label:'Message 82',}, {name:'msg83', type:'str', required: false, label:'Message 83',}, {name:'msg84', type:'str', required: false, label:'Message 84',}, {name:'msg85', type:'str', required: false, label:'Message 85',}, {name:'msg86', type:'str', required: false, label:'Message 86',}, {name:'msg87', type:'str', required: false, label:'Message 87',}, {name:'msg88', type:'str', required: false, label:'Message 88',}, {name:'msg89', type:'str', required: false, label:'Message 89',}, {name:'msg90', type:'str', required: false, label:'Message 90',}, {name:'msg91', type:'str', required: false, label:'Message 91',}, {name:'msg92', type:'str', required: false, label:'Message 92',}, {name:'msg93', type:'str', required: false, label:'Message 93',}, {name:'msg94', type:'str', required: false, label:'Message 94',}, {name:'msg95', type:'str', required: false, label:'Message 95',}, {name:'msg96', type:'str', required: false, label:'Message 96',}, {name:'msg97', type:'str', required: false, label:'Message 97',}, {name:'msg98', type:'str', required: false, label:'Message 98',}, {name:'msg99', type:'str', required: false, label:'Message 99',}, {name:'msg100', type:'str', required: false, label:'Message 100',}, {name:'msgcolor', type:'str', label:'Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notices being displayed (minimum 1)'}, {name: 'toc2', label: 'Section_2_Rainbow_chat************', type: 'choice',required: false}, {name: 'InputName1', type: 'str', label: 'Not used for anything', defaultValue: 'SomeText'}, {name: 'toc3', label: 'Section_3_Hide_gray_chatting************', type: 'choice',required: false}, { name: "msg_replace", type: "str", minLength: 1, maxLength: 255, defaultValue: "[message hidden. please purchase tokens to chat and tip.]", label: "Replace messages of users without tokens with this message", required: true }, { name: "msg_control", label: "Show message to all", type: "choice", choice1: "yes", choice2: "no", defaultValue: "no", required: true } ]; cb.onEnter(function(user) { if (cb.settings['msgonentry'] == 'yes') { cb.sendNotice('Welcome ' + user['user'] + '! ' + cb.settings['msg1'],user['user'],'',cb.settings['msgcolor'],'bold'); } }); function chatAd() { var msg; while (cb.settings['msg' + i] == 0) { //skip empty messages i++; if (i > 100) { //loop back to first message i=1; } } msg = cb.settings['msg' + i]; i++; if (i > 100) { //loop back to first message i=1; } cb.sendNotice(msg,'','',cb.settings['msgcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); function is_model(message) { return (message.user == cb.room_slug); } cb.onMessage(function (message) {message['background'] = "linear-gradient(to right, rgba(255,50,50,0.3) 0%,rgba(255,255,48,0.3) 26%,rgba(40,255,251,0.3) 60%,rgba(169,40,255,0.3) 99%)"; var msg = cb.settings.msg_replace; if ((!message.has_tokens) && (!message.is_mod) && (!message.in_fanclub) && (!is_model(message))) { message.m = msg; if (cb.settings.msg_control == "no"){ message.m = msg; message['X-Spam'] = true; } } return message; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.