Apps Home
|
Create an App
kTech_Beta
Author:
ktech_test4
Description
Source Code
Launch App
Current Users
Created by:
Ktech_Test4
/** * kTech CB Bot - (C) kilroyTech 2017 WARNING! This Bot must run for kTech integration. STATUS: BETA. This is a test!! */ /* Some stuff */ var total_tipped = 0; /* OnTip Event Receive a notification when a tip is sent. The func argument should be a function that receives 1 argument itself, tip. amount: amount of tip message: message in tip to_user: user who received tip from_user: user who sent tip from_user_in_fanclub: is the user in the broadcasters fan club from_user_has_tokens: does the user have at least 1 token from_user_is_mod: is the user a moderator from_user_tipped_recently: is the user a “dark blue”? from_user_tipped_alot_recently: is the user a “purple”? from_user_tipped_tons_recently: is the user a “dark purple”? from_user_gender: “m” (male), “f” (female), “s” (trans), or “c” (couple) */ cb.onTip(function (tip) { //alert ("This is a test"); total_tipped += parseInt(tip['amount']) cb.chatNotice("Total Tipped: " + total_tipped); cb.chatNotice(tip); cb.log("onTip()"); //window.parent.postMessage(tip, '*'); str = JSON.stringify(cb); str = JSON.stringify(cb, null, 4); // (Optional) beautiful indented output. cb.log(str); });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.