Apps Home
|
Create an App
douxtipiq
Author:
arielmh
Description
Source Code
Launch App
Current Users
Created by:
Arielmh
//Parameters for emoticons and colors in the notice message settings_choices = { very_small_tip_emoticon: ":rofl", small_tip_emoticon: ":roll", normal_tip_emoticon: ":thumbsup", big_tip_emoticon: "thumbup", very_big_tip_emoticon: ":smoke", light_blue_user_color: "#f265e8", dark_blue_user_color: "#6e3df8", purple_user_color: "#8d13b1", dark_purple_user_color: "#de1bd1", foreground: "#000000", }; let total_tipped = 0; let msg_color = settings_choices.light_blue_user_color; let msg_emoticon; let msg_foreground = settings_choices.foreground; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']); //Chosing the color of the message depending on the type of user if(tip["from_user_tipped_recently"]) { msg_color = settings_choices.dark_blue_user_color; }else if(tip["from_user_tipped_alot_recently"]) { msg_color = settings_choices.settings.purple_user_color; }else if(tip["from_user_tipped_tons_recently"]) { msg_color = settings_choices.settings.dark_purple_user_color; } //Chosing the emoticon of the message depending on the tip amount if(total_tipped < 15) { msg_emoticon = settings_choices.very_small_tip_emoticon; }else if(total_tipped < 100) { msg_emoticon = settings_choices.small_tip_emoticon }else if(total_tipped < 500){ msg_emoticon = settings_choices.normal_tip_emoticon }else if(total_tipped < 1000){ msg_emoticon = settings_choices.big_tip_emoticon }else{ msg_emoticon = settings_choices.very_big_tip_emoticon } cb.sendNotice(tip["from_user"] + " has an IQ of " + total_tipped + " " + msg_emoticon,"",msg_color,msg_foreground, "bolder"); });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.