Apps Home
|
Create an App
BK-KINGS
Author:
randowilson
Description
Source Code
Launch App
Current Users
Created by:
Randowilson
/** * Created by Pixel Precision. * Programmer: Brenden * Date: 5/30/17 * Time: 2:35 PM * Copyright 5/30/17 */ var bk_chat = { current_message: null, tip: 0, tip_count: 0, total_tipped: 0, user: null, onMessage: onMessage, onTip: onTip, sendChatNotice: sendChatNotice, setTip: function(tip){ this.tip = tip; }, setUser: function(user){ this.user = user; }, incrementTipCount: function(amt){ this.tip_count += amt; }, incrementTotalTip: function(amt){ this.total_tipped += amt; } } var genderSpecific = { "m": "a sexy hunk", "f": "a horny little girl", "s": "a horny being", "c": "an insatiable pussy and cock" } cb.onTip(onTip); cb.onMessage(onMessage); function sendChatNotice(notice){ cb.chatNotice(notice); } function onMessage(message){ init(); } function onTip(tip){ bk_chat.current_message = tip['from_user'] + ' ' + genderSpecific[tip['from_user_gender']]; bk_chat.incrementTotalTip(parseInt(tip['amount'])); bk_chat.sendChatNotice(bk_chat.current_message); } function setUser(user){ } function init(){ var button = document.createElement('div'); var text = document.createTextNode("TEST"); button.appendChild(text); document.body.appendChild(button); }
© Copyright Chaturbate 2011- 2025. All Rights Reserved.