Apps Home
|
Create an App
Co-Stream Partner Finder ChatBot
Author:
pageants
Description
Source Code
Launch App
Current Users
Created by:
Pageants
// 1. Define the settings the broadcaster can change cb.settings_choices = [ { name: 'tip_amount', type: 'int', minValue: 1, maxValue: 10000, defaultValue: 25, label: 'Tokens required to trigger application' }, { name: 'promo_interval', type: 'int', minValue: 1, maxValue: 120, defaultValue: 10, label: 'Minutes between promo messages' } ]; // 2. Define the static URLs and template text var affiliateUrl = "https://chaturbate.com/in/?tour=LQps&campaign=1M0my&track=default&room=pageants"; var promoMsgPart1 = "🎥 Looking for a co-star! Want to collaborate on an artistic live stream? Tip "; var promoMsgPart2 = " tokens to open the Partner Finder application. Everyone who applies gets a professional review and tier placement! 🌟"; var promoMsgPart3 = "New to Chaturbate? Register here to apply: " + affiliateUrl; // 3. Function to broadcast the promotional message function sendPromo() { // Safely pull the setting only AFTER the bot is fully running var reqTip = cb.settings.tip_amount; // Broadcast to the whole room (no username specified) cb.chatNotice(promoMsgPart1 + reqTip + promoMsgPart2); cb.chatNotice(promoMsgPart3); // Calculate milliseconds and schedule the next promo message var intervalMs = cb.settings.promo_interval * 60000; cb.setTimeout(sendPromo, intervalMs); } // 4. Hook into the Tip Event cb.onTip(function(tip) { // Parse amounts securely using Chaturbate's preferred bracket notation var tipAmount = parseInt(tip['amount']); var reqTip = parseInt(cb.settings.tip_amount); var tipper = tip['from_user']; // If the tip matches the exact required amount, trigger the application if (tipAmount === reqTip) { // Targeted notices sent ONLY to the tipper cb.chatNotice("🌟 PARTNER FINDER APPLICATION 🌟", tipper); cb.chatNotice("Thanks for your tip! To see if we are a good creative match, please send me a PM with your answers to these 4 questions:", tipper); cb.chatNotice("1. Platform Readiness: Are you verified as a broadcaster, or willing to complete standard ID verification? (Yes/No)", tipper); cb.chatNotice("2. Boundaries: Are you comfortable discussing hard limits and completing standard consent agreements? (Yes/No)", tipper); cb.chatNotice("3. Creative Vision: In one sentence, what artistic theme would you bring to a broadcast?", tipper); cb.chatNotice("4. Logistics: Do you have your own streaming setup, or would we rely on mine?", tipper); cb.chatNotice("I will review your PM and reply with your Tier Placement (Top 10%, Top 25%, or Top 50%).", tipper); } }); // 5. Initialize the bot safely // We use a 5-second (5000ms) delay to start the loop. This guarantees cb.settings // has been fully populated by the Chaturbate server before sendPromo() runs. cb.setTimeout(sendPromo, 5000);
© Copyright Chaturbate 2011- 2026. All Rights Reserved.