Apps Home
|
Create an App
Auto-Subscribe & Affiliate Promo
Author:
pageants
Description
Source Code
Launch App
Current Users
Created by:
Pageants
/* * App Name: Auto-Subscribe & Affiliate Promoter * Developer: Pageants */ // User-configurable settings for the broadcaster cb.settings_choices = [ { name: 'interval_minutes', type: 'int', minValue: 1, maxValue: 60, defaultValue: 10, label: 'Minutes between subscribe prompts' }, { name: 'text_color', type: 'str', minLength: 6, maxLength: 7, defaultValue: '#FFFFFF', label: 'Notice Text Color (Hex Code)' }, { name: 'bg_color', type: 'str', minLength: 6, maxLength: 7, defaultValue: '#000000', label: 'Notice Background Color (Hex Code)' } ]; // Pageants Affiliate Link var affiliateLink = "https://chaturbate.com/in/?tour=LQps&campaign=1M0my&track=default&room=pageants"; // Function to broadcast the subscription notice to the room function sendSubPrompt() { var subMessage = "⭐ Support the stream! Subscribe to " + cb.room_slug + " for exclusive perks! ⭐\n\n"; subMessage += "Not registered? Sign up and subscribe here: " + affiliateLink + "\n"; subMessage += "*(Notice: Unregistered clicks on this link allow affiliate referrals to be earned by app developer Pageants.)*"; // Send to everyone (empty string as the second parameter) cb.sendNotice(subMessage, '', cb.settings.text_color, cb.settings.bg_color, 'bold'); // Re-trigger the timer for a continuous loop cb.setTimeout(sendSubPrompt, cb.settings.interval_minutes * 60000); } // App Initialization Trigger cb.onDraw = function () { // Start the repeating subscription prompt timer cb.setTimeout(sendSubPrompt, cb.settings.interval_minutes * 60000); // Announce to the room that the app is active cb.sendNotice("Pageants' Subscribe Prompt App is now active! 🚀", '', cb.settings.text_color, cb.settings.bg_color, 'bold'); // Send a PRIVATE tip offering notice ONLY to the broadcaster when they apply the app var devNotice = "Thank you for using this app by Pageants! Chaturbate doesn't allow automatic triggers when a stream ends. If you love this app, please consider sending a tip to 'pageants' before you log off to support further app development! ❤️"; cb.sendNotice(devNotice, cb.room_slug, '#000000', '#FFB6C1', 'bold'); };
© Copyright Chaturbate 2011- 2026. All Rights Reserved.