Apps Home
|
Create an App
X2
Author:
skarlet31
Description
Source Code
Launch App
Current Users
Created by:
Skarlet31
cb.log("Hello, Chaturbate. This is app X."); cb.changeRoomSubject("Coding app X, a #Chaturbate #chat #chatbot #thing. Join in to #test. Help me name it."); //cb.drawPanel(); //cb.log("After cb.drawPanel()."); let print = cb.chatNotice cb.onEnter(function(user) { print('Greetings ' + user['user'] + '!, Thanks for joining.'); if(user['tipped_recently']) { print("Thanks for the tips, like in the past, but don't for get to tip more...someday, if you want to. Like if you can. And stuff."); } if((user['tipped_recently'] || user['tipped_alot_recently']) && !user['in_fanclub']) { print("Thanks for tipping so much recently. You should look into joining my fan club!"); } if(user['tipped_tons_recently']) { print("Thanks for being so generous with your tips! It's really appreciated :)"); } if(user['is_mod']) { print("YOU ARE CURRENTLY A MOD."); } if(user['has_tokens'] && !(user['tipped_recently'])) { print("Any tips appreciated! Use /tip in chat to send them with a message to me."); } if(user['gender'] === "f") { print("You are female"); } else { print("You are not female."); } }); let tippers = {}; cb.onTip(function (tip) { let from = tip['from_user']; let amount = tip['amount']; print("Thanks for the tip " + from + "!"); if(tippers[from]) { tippers[from] += amount; } else { tippers[from] = amount; } }); cb.onMessage(function (msg) { // This tells you more about who is talking in your room. // Enable by typing /debug in your chat window. let user = msg['user']; let gender = msg['gender']; let is_mod = msg['is_mod']; let in_fanclub = msg['in_fanclub']; let has_tokens = msg['has_tokens']; let tipped_recently = msg['tipped_recently']; let tipped_alot_recently = msg['tipped_alot_recently']; let tipped_tons_recently = msg['tippped_tons_recently']; print("Recieved message from: " + msg['user']); switch(gender) { case "f": { print(user + " is female."); } default: { print(user + " is not female."); } } if(msg['user'] === cb.room_slug) { print("User is the room owner."); } if(is_mod) { print(user + " is a moderator."); } if(has_tokens) { print(user + " has tokens."); } if(in_fanclub) { print(user + " is in my fanclub."); } if(tipped_recently) { print(user + " has tipped recently."); } if(tipped_alot_recently) { print(user + " has tipped a lot recently."); } if(tipped_tons_recently) { print(user + " has tipped tons recently."); } return msg; });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.