Apps Home
|
Create an App
My Cool App
Author:
model_acocunt
Description
Source Code
Launch App
Current Users
Created by:
Model_Acocunt
// Globals used App wide var TARGET_USER = 'user_account'; var SUBJECT_STR = 'At Goal: Squeal like a pig and tell eclectic__ he is my boss!'; var EASTER_EGG_TIP = 150; cb.onEnter(enterRoomEventHandler); cb.onLeave(leaveRoomEventHandler); cb.onTip(tipHandler); // Enter room handler function enterRoomEventHandler(user) { if (user['user'] === TARGET_USER) { cb.chatNotice('ALERT: My little bitch, ' + user['user'] + ', has entered the room!'); } } // Leave room handler function leaveRoomEventHandler(user) { if (user['user'] === TARGET_USER) { cb.chatNotice('My bitch ' + user['user'] + ', has left my room to cheat on me!'); } } // Tip handler function tipHandler(tip) { var tipUser = tip['from_user']; var tipAmount = parseInt(tip['amount']); if (tipUser === TARGET_USER && tipAmount >= EASTER_EGG_TIP) { cb.chatNotice('Thank you ' + tip['from_user']); update_subject(SUBJECT_STR); } } function update_subject(updatedSubject) { cb.changeRoomSubject(updatedSubject); } function initApp() { cb.log("Bitch app initialized"); cb.sendNotice("Hello World", '', '','#FF0000','bold'); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.