Bots Home
|
Create an App
Colorful Notifier 10
Author:
christianfinchxxx
Description
Source Code
Launch Bot
Current Users
Created by:
Christianfinchxxx
cb.settings_choices = [ {name:'welcomemsgchoice', type:'choice', label:'Welcome Messages', choice1:'On', choice2:'Off', required:false, defaultValue:'Off'}, {name:'welcomemsgrotatetime', type:'int', label:'Welcome Message Repeat Interval (Minutes)', minValue:0, maxValue:60, defaultValue:7, required:false}, {name:'notificationrotatetime', type:'int', label:'Notification Wall Repeat Interval (Minutes)', minValue:0, maxValue:60, defaultValue:5, required:false}, {name:'welcomemsgfixedcolor', type:'choice', label:'###### Welcome Message Style ######', defaultValue:'Chaturbate Orange', required:false, choice1:'Custom', choice2:'Chaturbate Orange', choice3:'Chaturbate Blue', choice4:'Chaturbate Tip Style', choice5:'Dark Red'}, {name:'welcomemsgtextstyle', type:'choice', label:'Weight', defaultValue:'bold', required:false, choice1:'normal', choice2:'bold'}, {name:'welcomemsgtextcolor', type:'str', label:'Color (with #)', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'welcomemsgbgcolor', type:'str', label:'Highlight (with #)', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'msg1', type:'str', defaultValue: 'Welcome to my room!',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg2', type:'str', defaultValue: 'Tip if you like the show!',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg3', type:'str', defaultValue: 'Thumbs up if you tip!',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg4', type:'str', defaultValue: 'Follow me if you want to see more!',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg5', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg6', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg7', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg8', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg9', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg10', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg11', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg12', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg13', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg14', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'msg15', type:'str', defaultValue: '',minLength:1, maxLength:255, label:'Text', required:false}, {name:'notification1', type:'choice', label:'###### Notification Style (Line 1) ######', defaultValue:'Dark Red', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle1', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg1', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor1', type:'str', label:'Color (with #)', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor1', type:'str', label:'Highlight (with #)', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification2', type:'choice', label:'###### Notification Style (Line 2) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle2', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg2', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor2', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor2', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification3', type:'choice', label:'###### Notification Style (Line 3) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle3', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg3', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor3', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor3', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification4', type:'choice', label:'###### Notification Style (Line 4) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle4', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg4', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor4', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor4', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification5', type:'choice', label:'###### Notification Style (Line 5) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle5', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg5', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor5', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor5', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification6', type:'choice', label:'###### Notification Style (Line 6) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle6', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg6', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor6', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor6', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification7', type:'choice', label:'###### Notification Style (Line 7) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle7', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg7', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor7', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor7', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification8', type:'choice', label:'###### Notification Style (Line 8) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle8', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg8', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor8', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor8', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification9', type:'choice', label:'###### Notification Style (Line 9) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle9', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg9', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor9', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor9', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification10', type:'choice', label:'###### Notification Style (Line 10) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle10', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg10', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor10', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor10', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification11', type:'choice', label:'###### Notification Style (Line 11) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle11', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg11', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor11', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor11', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification12', type:'choice', label:'###### Notification Style (Line 12) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle12', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg12', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor12', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor12', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification13', type:'choice', label:'###### Notification Style (Line 13) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle13', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg13', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor13', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor13', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification14', type:'choice', label:'###### Notification Style (Line 14) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle14', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg14', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor14', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor14', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notification15', type:'choice', label:'###### Notification Style (Line 15) ######', defaultValue:'Off', required:false, choice1:'Off', choice2:'Custom', choice3:'Chaturbate Orange', choice4:'Chaturbate Blue', choice5:'Chaturbate Tip Style', choice6:'Dark Red'}, {name:'notificationtextstyle15', type:'choice', label:'Weight', defaultValue:'normal', choice1:'normal', choice2:'bold', required:false}, {name:'notificationmsg15', type:'str', label:'Text', defaultValue:'', minLength:1, maxLength:250, required:false}, {name:'notificationtextcolor15', type:'str', label:'Color', defaultValue:'', minLength:0, maxLength:7, required:false}, {name:'notificationbgcolor15', type:'str', label:'Highlight', defaultValue:'', minLength:0, maxLength:7, required:false}, ]; cb.onEnter(function(user) { if(cb.settings['welcomemsgchoice']=='On') { var username = ''; if(user) username = user['user']; var welcomemsg = ''; for(var i=1; i<=15;i++) { if(cb.settings['msg' + i]) welcomemsg += cb.settings['msg'+i] + '\n '; } welcomemsg += 'Thanks for watching!'; if(cb.settings['welcomemsgfixedcolor']=='Custom') { cb.sendNotice(welcomemsg, user['user'],cb.settings['welcomemsgbgcolor'], cb.settings['welcomemsgtextcolor'], cb.settings['welcomemsgtextstyle']); }; if(cb.settings['welcomemsgfixedcolor']=='Chaturbate Orange') { cb.sendNotice(welcomemsg, user['user'], '', '#DC5500', 'bold'); }; if (cb.settings['welcomemsgfixedcolor']=='Chaturbate Blue') { cb.sendNotice(welcomemsg, user['user'], '', '#0a5a83', 'bold'); } if (cb.settings['welcomemsgfixedcolor']=='Chaturbate Tip Style') { cb.sendNotice(welcomemsg, user['user'], '#FF3', '#000000', 'bold'); } if (cb.settings['welcomemsgfixedcolor']=='Dark Red') { cb.sendNotice(welcomemsg, user['user'], '', '#990000', 'bold'); } displayNotices(user); } }); function displayNotices(user) { if(cb.settings['welcomemsgchoice']=='On') { var welcomemsg = ''; for(var i=1; i<=15;i++) { if(cb.settings['msg' + i]) welcomemsg += cb.settings['msg'+i] + '\n '; } welcomemsg += 'Thanks for watching!'; if(cb.settings['welcomemsgfixedcolor']=='Custom') { cb.sendNotice(welcomemsg, user,cb.settings['welcomemsgbgcolor'], cb.settings['welcomemsgtextcolor'], cb.settings['welcomemsgtextstyle']); }; if(cb.settings['welcomemsgfixedcolor']=='Chaturbate Orange') { cb.sendNotice(welcomemsg, user, '', '#DC5500', 'bold'); }; if (cb.settings['welcomemsgfixedcolor']=='Chaturbate Blue') { cb.sendNotice(welcomemsg, user, '', '#0a5a83', 'bold'); }; if (cb.settings['welcomemsgfixedcolor']=='Chaturbate Tip Style') { cb.sendNotice(welcomemsg, user, '', '#FF3', 'bold'); }; if (cb.settings['welcomemsgfixedcolor']=='Dark Red') { cb.sendNotice(welcomemsg, user, '', '#990000', 'bold'); } cb.setTimeout(displayNotices, cb.settings.welcomemsgrotatetime * 60000); } } function displayNotification(user) { var i; for (i=0; i<=15;i++) { if(cb.settings['notification' + i]=='Custom') { cb.sendNotice(cb.settings['notificationmsg' + i], user, cb.settings['notificationbgcolor' + i], cb.settings['notificationtextcolor' + i], cb.settings['notificationtextstyle' + i]); }; if(cb.settings['notification' + i]=='Chaturbate Orange') { cb.sendNotice(cb.settings['notificationmsg' + i], user, '', '#DC5500', 'bold'); }; if(cb.settings['notification' + i]=='Chaturbate Blue') { cb.sendNotice(cb.settings['notificationmsg' + i], user, '', '#0a5a83', 'bold'); }; if(cb.settings['notification' + i]=='Chaturbate Tip Style') { cb.sendNotice(cb.settings['notificationmsg' + i], user, '#FF3', '#000000', 'bold'); }; if(cb.settings['notification' + i]=='Dark Red') { cb.sendNotice(cb.settings['notificationmsg' + i], user, '', '#990000', 'bold'); } } cb.setTimeout(displayNotification, cb.settings.notificationrotatetime * 60000); } function init() { displayNotification(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.