Bots Home
|
Create an App
Caniac's Notification Bot
Author:
caniac71
Description
Source Code
Launch Bot
Current Users
Created by:
Caniac71
/* Title: "Caniac's Notification Bot" bot Author: caniac71 Provides a simple rotating set of automated notices about social media and wishlists. There are options for messages about your website, twitter account, and wishlist. Each message type is optional and will not be included in the rotation if blank. A different color can be specified for each message The next message in the rotation will display after the number of minutes specified by the selected interval. V1.0 - Init Version */ var totalMsgCount = 0; cb.settings_choices = [ {name:'websitemsg', type:'str', required: false, label:'Website Notice (Enter a message to display about your personal website.)',}, {name:'websitemsgcolor', type:'str', label:'Website Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name:'twitermsg', type:'str', required: false, label:'Twitter Notice (Enter a message to display about your twitter account.)',}, {name:'twittermsgcolor', type:'str', label:'Twitter Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name:'wishlistmsg', type:'str', required: false, defaultValue: '', label:'Wishlist Notice (Enter a message to display about your wishlist.)',}, {name:'wishlistmsgcolor', type:'str', label:'Wishlist Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name: 'msgint', type:'int', minValue: 1, maxValue: 999, defaultValue: 2, label: 'Delay in minutes between rotating notices (minimum 1)'} ]; function twitterAd() { var msg; msg = cb.settings.twitermsg; cb.sendNotice(msg,'','',cb.settings.twittermsgcolor,'bold'); cb.setTimeout(twitterAd, (cb.settings.msgint * totalMsgCount * 60000)); } function wishlistAd() { var msg; msg = cb.settings.wishlistmsg; cb.sendNotice(msg,'','',cb.settings.wishlistmsgcolor,'bold'); cb.setTimeout(wishlistAd, (cb.settings.msgint * totalMsgCount * 60000)); } function websiteAd() { var msg; msg = cb.settings.websitemsg; cb.sendNotice(msg,'','',cb.settings.websitemsgcolor,'bold'); cb.setTimeout(websiteAd, (cb.settings.msgint * totalMsgCount * 60000)); } function initTwitterAd(){ if(cb.settings['twitermsg'] == 0){ }else{ totalMsgCount = totalMsgCount + 1; cb.setTimeout(twitterAd, (cb.settings.msgint * totalMsgCount * 60000)); } } function initWebSiteAd(){ if(cb.settings['websitemsg'] == 0){ }else{ totalMsgCount = totalMsgCount + 1; cb.setTimeout(websiteAd, (cb.settings.msgint * totalMsgCount * 60000)); } } function initWishListAd(){ if(cb.settings['wishlistmsg'] == 0){ }else{ totalMsgCount = totalMsgCount + 1; cb.setTimeout(wishlistAd, (cb.settings.msgint * totalMsgCount * 60000)); } } function init() { initWebSiteAd(); initTwitterAd(); initWishListAd(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.