Bots Home
|
Create an App
Rotating Notifier (L&L)
Author:
leightonnlucy
Description
Source Code
Launch Bot
Current Users
Created by:
Leightonnlucy
/* Title: "Rotating Notifier - L&L" bot Author: badbadbubba and leighton Version: 1.0.0 (30/08/2014) A simple rotating notifier bot. Only options are to set color and display interval. Same as original app but with 5 Messages to be rotated in sequence. Unlike original app the first message is not shown when someone enters the room, it got a bit much when users started flooding in once the show started V1.0.0 - Added up to 5 messages and removed greeting message, changed default colour to hot pink */ var i=1; cb.settings_choices = [ {name:'msg1', type:'str', 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:'msgcolor', type:'str', label:'Notice color (html code default hot pink #FF69B4)', defaultValue: '#FF69B4'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 2, label: 'Delay in minutes between notices being displayed (minimum 1)'} ]; function chatAd() { var msg; while (cb.settings['msg' + i] == 0) { //skip empty messages i++; if (i > 5) { //loop back to first message i=1; } } msg = cb.settings['msg' + i]; i++; if (i > 5) { //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 init() { } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.