Apps Home
|
Create an App
MilkshakeLocal
Author:
tallcub2000
Description
Source Code
Launch App
Current Users
Created by:
Tallcub2000
const tipLevels = [ { minTokens: 5, seconds: 5 }, { minTokens: 20, seconds: 15 }, { minTokens: 50, seconds: 40 }, { minTokens: 100, seconds: 90 } ]; function getTipMenuText() { return tipLevels.map(level => `${level.minTokens}t = ${level.seconds}s`).join(', '); } // Send funneling data to overlay cb.onTip(function(tip) { const tokens = parseInt(tip.amount, 10); if (isNaN(tokens) || tokens <= 0) return; cb.sendNotice(`🥤 Milkshake Funnel activated for ${tokens} tokens!`); cb.runScript({ script: ` window.parent.postMessage({ type: 'milkshakeTrigger', tokens: ${tokens} }, '*'); ` }); }); // Respond to !milkshake in chat cb.onMessage(function(msg) { if (msg['m'].trim().toLowerCase() === '!milkshake') { cb.sendNotice("🥤 Milkshake Funnel Menu: " + getTipMenuText(), msg.user); } return msg; });
© Copyright Chaturbate 2011- 2026. All Rights Reserved.