Apps Home
|
Create an App
DLD Test
Author:
pluckysub
Description
Source Code
Launch App
Current Users
Created by:
Pluckysub
/*~~~~~~~~~~~~~~~~~ ~~Dallas Lashes Dice Bot ~~Version: 1.0.0 ~~Author: Pluckysub ~~Date: 17-11-2020 ~~~~~~~~~~~~~~~~~~~ */ cb.settings_choices = [ { name: 'theme', type: 'choice', label: 'Colour theme', choice1: 'Red', choice2: 'Gradient Red', choice3: 'Blue', choice4: 'Gradient Blue', choice5: 'Pink', choice6: 'Gradient Pink', choice7: 'Lilac', choice8: 'Gradient Lilac', choice9: 'Purple', choice10: 'Gradient Purple', choice11: 'Green', choice12: 'Gradient Green', choice13: 'Black', choice14: 'Gradient Black' }, { name: 'grad_dir', type: 'choice', label: 'If using a gradient, which direction would you like it? (dark to light)', choice1: 'to right', choice2: 'to right bottom', choice3: 'to right top', choice4: 'to top', choice5: 'to bottom', choice6: 'to left', choice7: 'to left bottom', choice8: 'to left top' }, { name: 's_tokens', type: 'int', minValue: 0, label: 'How much do you want to charge per Salene Task (0 to disable punishments)', defaultValue: 30 }, { name: 'p_tokens', type: 'int', minValue: 0, label: 'How much do you want to charge per Peach Task (0 to disable tasks)', defaultValue: 35 }, { name: 'l_tokens', type: 'int', minValue: 0, label: 'How much do you want to charge per Lillybugg Task (0 to disable rewards)', defaultValue: 50 }, { name: 'c_tokens', type: 'int', minValue: 0, label: 'How much do you want to charge per coin flip (0 to disable coin flips)', defaultValue: 75 }, { name: 't_menu', type: 'choice', label: 'Tip Menu?', choice1: 'Yes', choice2: 'No', default: 'No' }, { name: 'm_dir', type: 'choice', label: 'How do you want the tip menu orientated?', choice1: 'Single line', choice2: 'Multi line', default: 'Multi line' }, { name: 'App_add_time', type: 'choice', label: 'How often should the app advertise itself?', choice1: 2, choice2: 5, choice3: 10, choice4: 15, choice5: 20, choice6: 30, choice7: 45, choice8: 60, defaultValue: 10 }, { name: 'Rare_rolls', type: 'choice', label: 'Rare rolls enabled? (Make sure to set your own Rare options)', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'rare_percent', type: 'int', label: 'What percentage of rolls should be rare (using all 20 options, each roll is 5% chance)', minValue: 0, maxValue: 20, defaultValue: 2 }, { name: 's_number', type: 'int', minValue: 0, maxValue: 10, label: 'How many Salene Tasks - all fields required, will only roll up to specified number', defaultValue: 10 }, {name: 'salene_1', type: 'str', label: 'Salene Task 1', default: 'Pinch Nipples'}, {name: 'salene_2', type: 'str', label: 'Salene Task 2', default: 'Slap Nipples 5x each'}, {name: 'salene_3', type: 'str', label: 'Salene Task 3', default: 'Paddle Tits 5x each'}, {name: 'salene_4', type: 'str', label: 'Salene Task 4', default: 'Paddle Ass 5x each cheek'}, {name: 'salene_5', type: 'str', label: 'Salene Task 5', default: 'Slap Pussy 5x'}, {name: 'salene_6', type: 'str', label: 'Salene Task 6', default: 'Paddle Pussy 5x'}, {name: 'salene_7', type: 'str', label: 'Salene Task 7', default: 'Slap Inner Thighs 5x each'}, {name: 'salene_8', type: 'str', label: 'Salene Task 8', default: 'Paddle Inner Thighs 5x each'}, {name: 'salene_9', type: 'str', label: 'Salene Task 9', default: 'Bind Hands 5 minutes'}, {name: 'salene_10', type: 'str', label: 'Salene Task 10', default: 'Bind Feet 5 minutes'}, { name: 'rare_s_number', type: 'int', minValue: 0, maxValue: 5, label: 'How many RARE Salene Tasks - all fields required, will only roll up to specified number', defaultValue: 5 }, {name: 'salene_rare_1', type: 'str', label: 'Rare Salene Task', default: '**Rare Salene Task** 50 TIT SWATS'}, {name: 'salene_rare_2', type: 'str', label: 'Rare Salene Task', default: '**Rare Salene Task** 50 ASS SPANKS'}, {name: 'salene_rare_3', type: 'str', label: 'Rare Salene Task', default: '**Rare Salene Task** 50 PUSSY SPANKS'}, {name: 'salene_rare_4', type: 'str', label: 'Rare Salene Task', default: '**Rare Salene Task** NIPPLE CLAMPS - 10 MINUTES'}, {name: 'salene_rare_5', type: 'str', label: 'Rare Salene Task', default: '**Rare Salene Task** 1 MINUTE TICKLE TORTURE'}, { name: 'p_number', type: 'int', minValue: 0, maxValue: 10, label: 'How many Peach Tasks? (all fields required, will only roll up to specified number)', defaultValue: 10 }, {name: 'peach_1', type: 'str', label: 'task for rolling 1', default: 'Spit on Tits'}, {name: 'peach_2', type: 'str', label: 'task for rolling 2', default: 'Remove a piece of clothing'}, {name: 'peach_3', type: 'str', label: 'task for rolling 3', default: 'Pant and Woof for chat'}, {name: 'peach_4', type: 'str', label: 'task for rolling 4', default: 'Add one piece of fetish clothing'}, {name: 'peach_5', type: 'str', label: 'task for rolling 5', default: 'Stroke Dildo'}, {name: 'peach_6', type: 'str', label: 'task for rolling 6', default: 'Kiss Dildo'}, {name: 'peach_7', type: 'str', label: 'task for rolling 7', default: 'Blow Dildo'}, {name: 'peach_8', type: 'str', label: 'task for rolling 8', default: 'Deephthroat Dildo'}, {name: 'peach_9', type: 'str', label: 'task for rolling 9', default: 'Footjob'}, {name: 'peach_10', type: 'str', label: 'task for rolling 10', default: 'Tippers name on body'}, { name: 'rare_p_number', type: 'int', minValue: 0, maxValue: 5, label: 'How many RARE Peach Tasks - all fields required, will only roll up to specified number', defaultValue: 5 }, {name: 'peach_rare_1', type: 'str', label: 'Rare Task', default: '**RARE TASK** DRESS UP DOLL - TIPPERS CHOICE'}, {name: 'peach_rare_2', type: 'str', label: 'Rare Task', default: '**RARE TASK** STRIPTEASE'}, {name: 'peach_rare_3', type: 'str', label: 'Rare Task', default: '**RARE TASK** FACEFUCK DILDO'}, {name: 'peach_rare_4', type: 'str', label: 'Rare Task', default: '**RARE TASK** BONDAGE ROPES'}, {name: 'peach_rare_5', type: 'str', label: 'Rare Task', default: '**RARE TASK** SELF FOOT WORSHIP'}, { name: 'l_number', type: 'int', minValue: 0, maxValue: 10, label: 'How many Lillybugg Tasks? (all fields required, will only roll up to specified number)', defaultValue: 10 }, {name: 'lily_1', type: 'str', label: 'reward for rolling 1', default: 'Lots of love!'}, {name: 'lily_2', type: 'str', label: 'reward for rolling 2', default: 'Massage Tits'}, {name: 'lily_3', type: 'str', label: 'reward for rolling 3', default: 'Rub Pussy'}, {name: 'lily_4', type: 'str', label: 'reward for rolling 4', default: 'Rub Pussy - clit focus'}, {name: 'lily_5', type: 'str', label: 'reward for rolling 5', default: 'One finger inside'}, {name: 'lily_6', type: 'str', label: 'reward for rolling 6', default: 'Two Fingers inside'}, {name: 'lily_7', type: 'str', label: 'reward for rolling 7', default: '30 seconds of vibe'}, {name: 'lily_8', type: 'str', label: 'reward for rolling 8', default: 'One minute of vibe'}, {name: 'lily_9', type: 'str', label: 'reward for rolling 9', default: 'Slow dildo fuck'}, {name: 'lily_10', type: 'str', label: 'reward for rolling 10', default: 'Medium pace dildo fuck'}, { name: 'rare_l_number', type: 'int', minValue: 0, maxValue: 5, label: 'How many RARE Lillybugg Tasks - all fields required, will only roll up to specified number', defaultValue: 5 }, {name: 'lily_rare_1', type: 'str', label: 'Rare Reward', default: '**RARE REWARD** 5 MINUTE SELF PLEASURE'}, {name: 'lily_rare_2', type: 'str', label: 'Rare Reward', default: '**RARE REWARD** PUSSY LICKING'}, {name: 'lily_rare_3', type: 'str', label: 'Rare Reward', default: '**RARE REWARD** 3 BACK TO BACK ORGASMS'}, {name: 'lily_rare_4', type: 'str', label: 'Rare Reward', default: '**RARE REWARD** 10 MINUTE VIBE TORTURE'}, {name: 'lily_rare_5', type: 'str', label: 'Rare Reward', default: '**RARE REWARD** 20 MINUTES OF FREEDOM'}, { name: 'rare_c_number', type: 'choice', label: 'Rare coin flip? (edge/side)', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'rare_c_chance', type: 'int', label: 'Rare coin flip chance? (%)', minValue: 1, maxValue: 33, defaultValue: '10' }, {name: 'coin_h', type: 'str', label: 'Coin Flip - Heads', default: 'Orgasm'}, {name: 'coin_t', type: 'str', label: 'Coin Flip - Tails', default: 'No orgasm, stop just before'}, {name: 'coin_s', type: 'str', label: 'Coin Flip - Rare (side)', default: 'No orgasm until you beg to cum!'}, { name: 'm_number', label: 'How many tip menu items?', type: 'int', maxValue: 50, default: 25 }, { name: 'seperator', label: 'What gif would you like to separate the menu items? (please test in chat to see which you prefer)', type: 'choice', choice1: ':heart2', choice2: ':panties43', choice3: ':pixelpanda', choice4: ':starslana', choice5: ':star_olivia_dellvine', choice6: ':cutecatautumn', choice7: ':pixlpanties', choice8: ':pixlcolourstar', default: ':heart2' }, { name: 'menu_time', type: 'choice', label: 'How often should the Tip Menu automatically display?', choice1: 2, choice2: 5, choice3: 10, choice4: 15, choice5: 20, choice6: 30, choice7: 45, choice8: 60, defaultValue: 5 }, {name: 'm_1', type: 'str', label: 'Tip Menu Item 01', default: 'e.g Blow a kiss'}, {name: 'mprice_1', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_2', type: 'str', label: 'Tip Menu Item 02', default: '2'}, {name: 'mprice_2', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_3', type: 'str', label: 'Tip Menu Item 03', default: '3'}, {name: 'mprice_3', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_4', type: 'str', label: 'Tip Menu Item 04', default: '4'}, {name: 'mprice_4', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_5', type: 'str', label: 'Tip Menu Item 05', default: '5'}, {name: 'mprice_5', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_6', type: 'str', label: 'Tip Menu Item 06', default: '6'}, {name: 'mprice_6', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_7', type: 'str', label: 'Tip Menu Item 07', default: '7'}, {name: 'mprice_7', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_8', type: 'str', label: 'Tip Menu Item 08', default: '8s'}, {name: 'mprice_8', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_9', type: 'str', label: 'Tip Menu Item 09', default: '9'}, {name: 'mprice_9', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_10', type: 'str', label: 'Tip Menu Item 10', default: '10'}, {name: 'mprice_10', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_11', type: 'str', label: 'Tip Menu Item 11', default: '11'}, {name: 'mprice_11', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_12', type: 'str', label: 'Tip Menu Item 12', default: '12'}, {name: 'mprice_12', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_13', type: 'str', label: 'Tip Menu Item 13', default: '13'}, {name: 'mprice_13', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_14', type: 'str', label: 'Tip Menu Item 14', default: '14'}, {name: 'mprice_14', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_15', type: 'str', label: 'Tip Menu Item 15', default: '15'}, {name: 'mprice_15', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_16', type: 'str', label: 'Tip Menu Item 16', default: '16'}, {name: 'mprice_16', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_17', type: 'str', label: 'Tip Menu Item 17', default: '17'}, {name: 'mprice_17', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_18', type: 'str', label: 'Tip Menu Item 18', default: '18'}, {name: 'mprice_18', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_19', type: 'str', label: 'Tip Menu Item 19', default: '19'}, {name: 'mprice_19', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_20', type: 'str', label: 'Tip Menu Item 20', default: '20'}, {name: 'mprice_20', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_21', type: 'str', label: 'Tip Menu Item 21', default: '21'}, {name: 'mprice_21', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_22', type: 'str', label: 'Tip Menu Item 22', default: '22'}, {name: 'mprice_22', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_23', type: 'str', label: 'Tip Menu Item 23', default: '23'}, {name: 'mprice_23', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_24', type: 'str', label: 'Tip Menu Item 24', default: '24'}, {name: 'mprice_24', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_25', type: 'str', label: 'Tip Menu Item 25', default: '25'}, {name: 'mprice_25', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_26', type: 'str', label: 'Tip Menu Item 26', default: '26'}, {name: 'mprice_26', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_27', type: 'str', label: 'Tip Menu Item 27', default: '27'}, {name: 'mprice_27', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_28', type: 'str', label: 'Tip Menu Item 28', default: '28'}, {name: 'mprice_28', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_29', type: 'str', label: 'Tip Menu Item 29', default: '29'}, {name: 'mprice_29', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_30', type: 'str', label: 'Tip Menu Item 30', default: '30'}, {name: 'mprice_30', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_31', type: 'str', label: 'Tip Menu Item 31', default: '31'}, {name: 'mprice_31', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_32', type: 'str', label: 'Tip Menu Item 32', default: '32'}, {name: 'mprice_32', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_33', type: 'str', label: 'Tip Menu Item 33', default: '33'}, {name: 'mprice_33', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_34', type: 'str', label: 'Tip Menu Item 34', default: '34'}, {name: 'mprice_34', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_35', type: 'str', label: 'Tip Menu Item 35', default: '35'}, {name: 'mprice_35', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_36', type: 'str', label: 'Tip Menu Item 36', default: '36'}, {name: 'mprice_36', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_37', type: 'str', label: 'Tip Menu Item 37', default: '37'}, {name: 'mprice_37', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_38', type: 'str', label: 'Tip Menu Item 38', default: '38'}, {name: 'mprice_38', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_39', type: 'str', label: 'Tip Menu Item 39', default: '39'}, {name: 'mprice_39', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_40', type: 'str', label: 'Tip Menu Item 40', default: '40'}, {name: 'mprice_40', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_41', type: 'str', label: 'Tip Menu Item 41', default: '41'}, {name: 'mprice_41', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_42', type: 'str', label: 'Tip Menu Item 42', default: '42'}, {name: 'mprice_42', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_43', type: 'str', label: 'Tip Menu Item 43', default: '43'}, {name: 'mprice_43', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_44', type: 'str', label: 'Tip Menu Item 44', default: '44'}, {name: 'mprice_44', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_45', type: 'str', label: 'Tip Menu Item 48', default: '45'}, {name: 'mprice_45', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_46', type: 'str', label: 'Tip Menu Item 46', default: '46'}, {name: 'mprice_46', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_47', type: 'str', label: 'Tip Menu Item 47', default: '47'}, {name: 'mprice_47', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_48', type: 'str', label: 'Tip Menu Item 48', default: '47'}, {name: 'mprice_48', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_49', type: 'str', label: 'Tip Menu Item 49', default: '49'}, {name: 'mprice_49', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'm_50', type: 'str', label: 'Tip Menu Item 50', default: '50'}, {name: 'mprice_50', type: 'int', label: '(keep price as 0 to disable item) Item Price 01', defaultValue: 0}, {name: 'subject_change', type: 'choice', label: 'Would you like the app to change your subject', choice1: 'Yes', choice2: 'No', default: 'No'}, {name: 'subject_words', type: 'str', label: 'Subject (max 105 Characters)', maxLength: 105, default: 'Come and punish me, give me tasks, or be nice and reward me! '}, {name: 'tag_1', type: 'str', label: 'Tags (Optional) #', maxLength: 20, default: 'BDSM'}, {name: 'tag_2', type: 'str', label: 'Tags (Optional) #', maxLength: 20, default: 'Orgasm'}, {name: 'tag_3', type: 'str', label: 'Tags (Optional) #', maxLength: 20, default: 'Tits'}, {name: 'tag_4', type: 'str', label: 'Tags (Optional) #', maxLength: 20, default: 'Pussy'}, {name: 'tag_5', type: 'str', label: 'Tags (Optional) #', maxLength: 20, default: 'Submissive'}, { name: 'socials', type: 'choice', label: 'Socials notifications?', choice1: 'Yes', choice2: 'No', default: 'No' }, { name: 'social_twitter', type: 'str', label: 'Twitter? (if none, just put a ".")', default: 'null' }, { name: 'social_insta', type: 'str', label: 'Instagram? (if none, just put a ".")', default: 'null' }, { name: 'social_of', type: 'str', label: 'OnlyFans? (if none, just put a ".")', default: 'null' }, { name: 'social_snap', type: 'str', label: 'Snapchat? (if none, just put a ".")', default: 'null' }, { name: 'social_kik', type: 'str', label: 'Kik? (if none, just put a ".")', default: 'null' }, { name: 'social_wa', type: 'str', label: 'Whatsapp? (if none, just put a ".")', default: 'null' } ]; var salene = []; var peach = []; var lilly = []; var menu = []; var rareChance = 10; // percent chance of rolling a RARE (minimum rolls must also be met) var msg = '--'; var font_size, font_weight, font_colour, light_colour, dark_colour; if (cb.settings.theme == "Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "#FF5454"; dark_colour = "#990000"; } else if (cb.settings.theme == "Gradient Red") { font_size = 11; font_weight = "bold"; font_colour = "#CE0000"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF4D4D,#FF9999)"; dark_colour = "#990000"; } else if (cb.settings.theme == "Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "#b8beff"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Gradient Blue") { font_size = 11; font_weight = "bold"; font_colour = "#0013CE"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#6470F7,#CCD0FF)"; dark_colour = "#000D89"; } else if (cb.settings.theme == "Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "#ffdbec"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Gradient Pink") { font_size = 11; font_weight = "bold"; font_colour = "#ff61ab"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#FF70B8,#FFD1E8)"; dark_colour = "#fa0578"; } else if (cb.settings.theme == "Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "#C8A2C8"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Gradient Lilac") { font_size = 11; font_weight = "bold"; font_colour = "#472e47"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#e6bee6,#ab78ab)"; dark_colour = "#472e47"; } else if (cb.settings.theme == "Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "#e0a1ff"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Gradient Purple") { font_size = 11; font_weight = "bold"; font_colour = "#8a0ac9"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#C757FF,#F0D1FF)"; dark_colour = "#3a0057"; } else if (cb.settings.theme == "Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "#abffae"; dark_colour = "#005203"; } else if (cb.settings.theme == "Gradient Green") { font_size = 11; font_weight = "bold"; font_colour = "#06c90d"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#64B967,#D6F0D7)"; dark_colour = "#005203"; } else if (cb.settings.theme == "Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "#b5b5b5"; dark_colour = "#000000"; } else if (cb.settings.theme == "Gradient Black") { font_size = 11; font_weight = "bold"; font_colour = "#292929"; light_colour = "linear-gradient(" + cb.settings.grad_dir + ",#919191,#EBEBEB)"; dark_colour = "#000000"; } cb.onTip(function (tip) { var roll_1 = Math.floor(Math.random() * cb.settings.s_number + 1) var roll_2 = Math.floor(Math.random() * cb.settings.p_number + 1) var roll_3 = Math.floor(Math.random() * cb.settings.l_number + 1) var roll_A = Math.floor(Math.random() * 100 + 1) var roll_4 = Math.floor(Math.random() * cb.settings.rare_s_number + 1) var roll_5 = Math.floor(Math.random() * cb.settings.rare_p_number + 1) var roll_6 = Math.floor(Math.random() * cb.settings.rare_l_number + 1) var roll_7 = Math.floor(Math.random() * 2 + 1) var roll_8 = Math.floor(Math.random() * 3 + 1) var msg = " " if (tip['amount'] === cb.settings.s_tokens) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg += ("Salene Task! But shiny! " + cb.settings['salene_rare_' + roll_4]); } else { msg += ("Salene Task! You rolled a " + roll_1 + "! " + cb.settings['salene_' + roll_1]); } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.s_tokens * 2) { msg += ("Choose a Salene Task!"); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.p_tokens) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg += ("Peach Task! But shiny! " + cb.settings['peach_rare_' + roll_5]); } else { msg += ("Peach Task! You rolled a " + roll_2 + "! " + cb.settings['peach_' + roll_2]); } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.p_tokens * 2) { msg += ("Choose a Peach Task!"); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.l_tokens) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg += ("Lillybugg Task! But shiny! " + cb.settings['lily_rare_' + roll_6]); } else { msg += (" Lillybugg Task! You rolled a " + roll_3 + "! " + cb.settings['lily_' + roll_3]); } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.l_tokens * 2) { msg += ("Choose a Lillybugg Task!"); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.c_tokens) { if (cb.settings.rare_c_number === 'No' && tip['amount'] === cb.settings.c_tokens) { if (roll_7 === 1) { msg += ("Coin Flip... :quartercointoss \n"); cb.setTimeout(parseInt(1) * 3000); msg += ("HEADS! " + cb.settings.coin_h); } else { msg += ("Coin Flip... :quartercointoss \n"); cb.setTimeout(parseInt(1) * 3000); msg += ("TAILS! " + cb.settings.coin_t); } } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (cb.settings.rare_c_number === 'Yes' && tip['amount'] === cb.settings.c_tokens) { if (roll_8 === 1) { msg += ("Coin Flip... :quartercointoss \n"); cb.setTimeout(parseInt(1) * 3000); msg += ("HEADS! " + cb.settings.coin_h); } if (roll_8 === 2) { msg += ("Coin Flip... :quartercointoss \n"); cb.setTimeout(parseInt(1) * 3000); msg += ("HEADS! " + cb.settings.coin_h); } if (roll_8 === 3) { msg += ("Coin Flip... :quartercointoss \n"); cb.setTimeout(parseInt(1) * 3000); msg += ("Unlucky! " + cb.settings.coin_s); } cb.setTimeout(3000); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_1) { msg = (cb.settings.seperator + " " + cb.settings.m_1); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_2) { msg = (cb.settings.seperator + " " + cb.settings.m_2); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_3) { msg = (cb.settings.seperator + " " + cb.settings.m_3); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_4) { msg = (cb.settings.seperator + " " + cb.settings.m_4); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_5) { msg = (cb.settings.seperator + " " + cb.settings.m_5); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_6) { msg = (cb.settings.seperator + " " + cb.settings.m_6); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_7) { msg = (cb.settings.seperator + " " + cb.settings.m_7); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_8) { msg = (cb.settings.seperator + " " + cb.settings.m_8); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_9) { msg = (cb.settings.seperator + " " + cb.settings.m_9); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_10) { msg = (cb.settings.seperator + " " + cb.settings.m_10); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_11) { msg = (cb.settings.seperator + " " + cb.settings.m_11); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_12) { msg = (cb.settings.seperator + " " + cb.settings.m_12); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_13) { msg = (cb.settings.seperator + " " + cb.settings.m_13); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_14) { msg = (cb.settings.seperator + " " + cb.settings.m_14); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_15) { msg = (cb.settings.seperator + " " + cb.settings.m_15); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_16) { msg = (cb.settings.seperator + " " + cb.settings.m_16); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_17) { msg = (cb.settings.seperator + " " + cb.settings.m_17); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_18) { msg = (cb.settings.seperator + " " + cb.settings.m_18); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_19) { msg = (cb.settings.seperator + " " + cb.settings.m_19); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_20) { msg = (cb.settings.seperator + " " + cb.settings.m_20); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_21) { msg = (cb.settings.seperator + " " + cb.settings.m_21); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_22) { msg = (cb.settings.seperator + " " + cb.settings.m_22); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_23) { msg = (cb.settings.seperator + " " + cb.settings.m_23); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_24) { msg = (cb.settings.seperator + " " + cb.settings.m_24); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_25) { msg = (cb.settings.seperator + " " + cb.settings.m_25); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_26) { msg = (cb.settings.seperator + " " + cb.settings.m_26); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_27) { msg = (cb.settings.seperator + " " + cb.settings.m_27); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_28) { msg = (cb.settings.seperator + " " + cb.settings.m_28); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_29) { msg = (cb.settings.seperator + " " + cb.settings.m_29); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_30) { msg = (cb.settings.seperator + " " + cb.settings.m_30); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_31) { msg = (cb.settings.seperator + " " + cb.settings.m_31); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_32) { msg = (cb.settings.seperator + " " + cb.settings.m_32); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_33) { msg = (cb.settings.seperator + " " + cb.settings.m_33); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_34) { msg = (cb.settings.seperator + " " + cb.settings.m_34); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_35) { msg = (cb.settings.seperator + " " + cb.settings.m_35); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_36) { msg = (cb.settings.seperator + " " + cb.settings.m_36); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_37) { msg = (cb.settings.seperator + " " + cb.settings.m_37); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_38) { msg = (cb.settings.seperator + " " + cb.settings.m_38); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_39) { msg = (cb.settings.seperator + " " + cb.settings.m_39); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_40) { msg = (cb.settings.seperator + " " + cb.settings.m_40); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_41) { msg = (cb.settings.seperator + " " + cb.settings.m_41); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_42) { msg = (cb.settings.seperator + " " + cb.settings.m_42); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_43) { msg = (cb.settings.seperator + " " + cb.settings.m_43); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_44) { msg = (cb.settings.seperator + " " + cb.settings.m_44); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_45) { msg = (cb.settings.seperator + " " + cb.settings.m_45); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_46) { msg = (cb.settings.seperator + " " + cb.settings.m_46); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_47) { msg = (cb.settings.seperator + " " + cb.settings.m_47); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_48) { msg = (cb.settings.seperator + " " + cb.settings.m_48); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_49) { msg = (cb.settings.seperator + " " + cb.settings.m_49); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (tip['amount'] === cb.settings.mprice_50) { msg = (cb.settings.seperator + " " + cb.settings.m_50); cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } { cb.drawPanel(); } }); cb.onDrawPanel(function (user) { if (cb.settings.s_tokens != 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens != 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': cb.settings.s_tokens + ' tokens', 'row2_label': 'Peach Tasks:', 'row2_value': cb.settings.p_tokens + ' tokens', 'row3_label': 'Lillybugg Tasks:', 'row3_value': cb.settings.l_tokens + ' tokens', } }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens === 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': cb.settings.s_tokens + ' tokens', 'row2_label': 'Peach Tasks:', 'row2_value': cb.settings.p_tokens + ' tokens', 'row3_label': 'Lillybugg Tasks:', 'row3_value': 'Disabled', } }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens != 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': cb.settings.s_tokens + ' tokens', 'row2_label': 'Peach Tasks:', 'row2_value': 'Disabled', 'row3_label': 'Lillybugg Tasks:', 'row3_value': cb.settings.l_tokens + ' tokens', } }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens === 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': cb.settings.s_tokens + ' tokens', 'row2_label': 'Peach Tasks:', 'row2_value': 'Disabled', 'row3_label': 'Lillybugg Tasks:', 'row3_value': 'Disabled', } }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens != 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': 'Disabled', 'row2_label': 'Peach Tasks:', 'row2_value': cb.settings.p_tokens + ' tokens', 'row3_label': 'Lillybugg Tasks:', 'row3_value': cb.settings.l_tokens + ' tokens', } }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens === 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': 'Disabled', 'row2_label': 'Peach Tasks:', 'row2_value': cb.settings.p_tokens + ' tokens', 'row3_label': 'Lillybugg Tasks:', 'row3_value': 'Disabled', } }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens != 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': 'Disabled', 'row2_label': 'Peach Tasks:', 'row2_value': 'Disabled', 'row3_label': 'Lillybugg Tasks:', 'row3_value': cb.settings.l_tokens + ' tokens', } }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens === 0) { return { 'template': '3_rows_of_labels', 'row1_label': 'Salene Tasks:', 'row1_value': 'Disabled', 'row2_label': 'Peach Tasks:', 'row2_value': 'Disabled', 'row3_label': 'Lillybugg Tasks:', 'row3_value': 'Disabled', } }; }); cb.onEnter(function (user) { showAppAd(user['user']); }); cb.onMessage (function (msg) { var m = msg.m; var user = msg.user; var isMod = msg.is_mod; var isHost = user === cb.room_slug; var roll_1 = Math.floor(Math.random() * cb.settings.s_number + 1) var roll_2 = Math.floor(Math.random() * cb.settings.p_number + 1) var roll_3 = Math.floor(Math.random() * cb.settings.l_number + 1) var roll_A = Math.floor(Math.random() * 100 + 1) var roll_4 = Math.floor(Math.random() * cb.settings.rare_s_number + 1) var roll_5 = Math.floor(Math.random() * cb.settings.rare_p_number + 1) var roll_6 = Math.floor(Math.random() * cb.settings.rare_l_number + 1) var roll_7 = Math.floor(Math.random() * 2 + 1) var roll_8 = Math.floor(Math.random() * 3 + 1) // just check once if (m.charAt(0) === '/') { msg['X-Spam'] = true; } if (m.match(/#S/i) && cb.settings.s_tokens != 0) { if (isHost || isMod) { showSalene(); } else { showSalene(user); } } if (m.match(/#P/i) && cb.settings.p_tokens != 0) { if (isHost || isMod) { showPeach(); } else { showPeach(user); } } if (m.match(/#L/i) && cb.settings.l_tokens != 0) { if (isHost || isMod) { showLilly(); } else { showLilly(user); } } if (m.match(/#M/i) && cb.settings.t_menu === 'Yes') { if (isHost || isMod) { showTMenu(); } else { showTMenu(user); } } if (m.match(/<3S/i)) { if (isHost) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg = ("Salene Task! " + cb.settings['salene_rare_' + roll_4]); } else { msg = "Salene Task! " + cb.settings['salene_' + Math.floor(Math.random() * cb.settings.s_number + 1)]; } } else { msg = "That's not for you, darling!"; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (m.match(/<3P/i)) { if (isHost) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg = ("Peach Task! " + cb.settings['peach_rare_' + roll_5]); } else { msg = "Peach Task! " + cb.settings['peach_' + Math.floor(Math.random() * cb.settings.p_number + 1)]; } } else { msg = "That's not for you, darling!"; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (m.match(/<3L/i)) { if (isHost) { if (roll_A >= (100 - cb.settings.rare_percent) && cb.settings.Rare_rolls === 'Yes') { msg = ("Lillybugg Task! " + cb.settings['lily_rare_' + roll_6]); } else { msg = "Lillybugg Task! " + cb.settings['lily_' + Math.floor(Math.random() * cb.settings.p_number + 1)]; } } else { msg = "That's not for you, darling!"; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (m.match(/<3Flip/i)) { if (isHost) { if ((roll_7 === 1) && cb.settings.rare_c_number === 'No') { msg = "Coin Flip... :quartercointoss \n"; msg += "HEADS! " + cb.settings.coin_h; } else { msg = "Coin Flip... :quartercointoss \n"; msg += "TAILS! " + cb.settings.coin_t; } } if (isHost) { if ((roll_7 === 1) && cb.settings.rare_c_number === 'Yes') { msg = "Coin Flip... :quartercointoss \n"; msg += "HEADS! " + cb.settings.coin_h; } if ((roll_7 === 2) && cb.settings.rare_c_number === 'Yes'){ msg = "Coin Flip... :quartercointoss \n"; msg += "TAILS! " + cb.settings.coin_t; } if (roll_A <= cb.settings.rare_c_chance && cb.settings.rare_c_number === 'Yes'){ msg = "Coin Flip... :quartercointoss \n"; msg += "Unlucky! " + cb.settings.coin_s; } } else { msg = "That's not for you, darling!" } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } if (m.match(/#HELP/i)) { if (isHost) { msg = "#P - a full list of Salene Tasks. (" + cb.settings.s_tokens + "tk, or " + [cb.settings.s_tokens * 2] + " tk to choose one!)\n"; msg += "<3P - to roll a Salene Task as host. \n"; msg += "#T - a full list of Peach Tasks. (" + cb.settings.p_tokens + "tk, or " + [cb.settings.p_tokens * 2] + " tk to choose one!)\n"; msg += "<3T - to roll a Peach Task as host. \n"; msg += "#R - a full list of Lillybugg Tasks. (" + cb.settings.l_tokens + "tk, or " + [cb.settings.l_tokens * 2] + " tk to choose one!)\n"; msg += "<3R - to roll a Lillybugg Task as host. \n"; msg += "<3flip - to flip a coin as host.\n"; if (cb.settings.c_tokens > 0) { msg += "Toss the coin and get either HEADS - " + cb.settings.coin_h + ", or TAILS - " + cb.settings.coin_t + "!"; } if (cb.settings.t_menu === 'Yes') { msg += "#M - to see the full tip menu" } } else { msg = "#P - a full list of Salene Tasks. (" + cb.settings.s_tokens + "tk, or " + [cb.settings.s_tokens * 2] + " tk to choose one!) \n"; msg += "#T - a full list of Peach Tasks. (" + cb.settings.p_tokens + "tk, or " + [cb.settings.p_tokens * 2] + " tk to choose one!)\n"; msg += "#R - a full list of Lillybugg Tasks. (" + cb.settings.l_tokens + "tk, or " + [cb.settings.l_tokens * 2] + " tk to choose one!)\n"; if (cb.settings.c_tokens > 0) { msg += "Toss the coin and get either HEADS - " + cb.settings.coin_h + ", or TAILS - " + cb.settings.coin_t + "!"; } if (cb.settings.t_menu === 'Yes') { msg += "#M - to see the full tip menu" } } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } return msg; }); function setSalene() { for (var i = 1; i <= cb.settings.s_number; i++) { salene.push(cb.settings['salene_' + i]); } } function setPeach() { for (var i = 1; i <= cb.settings.p_number; i++) { peach.push(cb.settings['peach_' + i]); } } function setLilly() { for (var i = 1; i <= cb.settings.l_number; i++) { lilly.push(cb.settings['lily_' + i]); } } function setTMenu() { for (var i = 1; i <= cb.settings.m_number; i++) { menu.push(cb.settings['m_' + i]); } } function showSalene(username) { if (salene.length) { var msg = "~~~ POSSIBLE SALENE TASKS (" + cb.settings.s_tokens + " tk) ~~~"; for (var i = 1; i <= cb.settings.s_number; i++) { if (salene.indexOf(cb.settings['salene_' + i]) >= 0) msg += "\nRoll " + i + " " + cb.settings.seperator + " " + cb.settings['salene_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function showPeach(username) { if (peach.length) { var msg = "~~~ POSSIBLE PEACH TASKS (" + cb.settings.p_tokens + " tk) ~~~"; for (var i = 1; i <= cb.settings.p_number; i++) { if (peach.indexOf(cb.settings['peach_' + i]) >= 0) msg += "\nRoll " + i + " " + cb.settings.seperator + " " + cb.settings['peach_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function showLilly(username) { if (lilly.length) { var msg = "~~~ POSSIBLE LILLYBUGG TASKS (" + cb.settings.l_tokens + " tk) ~~~"; for (var i = 1; i <= cb.settings.l_number; i++) { if (lilly.indexOf(cb.settings['lily_' + i]) >= 0) msg += "\nRoll " + i + " " + cb.settings.seperator + " " + cb.settings['lily_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } function showTMenu(username) { var msg = " " if (menu.length) { if (cb.settings.m_dir === 'Single line') { msg = "~~~ TIP MENU ~~~\n"; for (var i = 01; i <= cb.settings.m_number; i++) { if (menu.indexOf(cb.settings['m_' + i]) >= 0) msg += cb.settings.seperator + " (" + cb.settings['mprice_' + i] + ") - " + cb.settings['m_' + i] + " "; } } if (cb.settings.m_dir === 'Multi line') { msg = "~~~ TIP MENU ~~~"; for (var i = 01; i <= cb.settings.m_number; i++) { if (menu.indexOf(cb.settings['m_' + i]) >= 0) msg += "\n(" + cb.settings['mprice_' + i] + ") " + cb.settings.seperator + " " + cb.settings['m_' + i]; } } cb.sendNotice(msg, username, light_colour, dark_colour, 'bold'); } } function advertise() { showAppAd(); cb.setTimeout(advertise, parseInt(cb.settings.App_add_time) * 60000); } function tipMenu() { showTMenu(); cb.setTimeout(tipMenu, parseInt(cb.settings.menu_time) * 60000); } function showTMenu(username) { var msg = ""; if (username != undefined) { msg += "Welcome, " + username + ", come and play with us beautiful ladies! \n"; } else { msg = "~~~ TIP MENU ~~~"; if (cb.settings.mprice_1 != 0) { msg += "\n (" + cb.settings.mprice_1 + ") " + cb.settings.seperator + " " + cb.settings.m_1 + " "; } if (cb.settings.mprice_2 != 0) { msg += "\n (" + cb.settings.mprice_2 + ") " + cb.settings.seperator + " " + cb.settings.m_2 + " "; } if (cb.settings.mprice_3 != 0) { msg += "\n (" + cb.settings.mprice_3 + ") " + cb.settings.seperator + " " + cb.settings.m_3 + " "; } if (cb.settings.mprice_4 != 0) { msg += "\n (" + cb.settings.mprice_4 + ") " + cb.settings.seperator + " " + cb.settings.m_4 + " "; } if (cb.settings.mprice_5 != 0) { msg += "\n (" + cb.settings.mprice_5 + ") " + cb.settings.seperator + " " + cb.settings.m_5 + " "; } if (cb.settings.mprice_6 != 0) { msg += "\n (" + cb.settings.mprice_6 + ") " + cb.settings.seperator + " " + cb.settings.m_6 + " "; } if (cb.settings.mprice_7 != 0) { msg += "\n (" + cb.settings.mprice_7 + ") " + cb.settings.seperator + " " + cb.settings.m_7 + " "; } if (cb.settings.mprice_8 != 0) { msg += "\n (" + cb.settings.mprice_8 + ") " + cb.settings.seperator + " " + cb.settings.m_8 + " "; } if (cb.settings.mprice_9 != 0) { msg += "\n (" + cb.settings.mprice_9 + ") " + cb.settings.seperator + " " + cb.settings.m_9 + " "; } if (cb.settings.mprice_10 != 0) { msg += "\n (" + cb.settings.mprice_10 + ") " + cb.settings.seperator + " " + cb.settings.m_10 + " "; } if (cb.settings.mprice_11 != 0) { msg += "\n (" + cb.settings.mprice_11 + ") " + cb.settings.seperator + " " + cb.settings.m_11 + " "; } if (cb.settings.mprice_12 != 0) { msg += "\n (" + cb.settings.mprice_12 + ") " + cb.settings.seperator + " " + cb.settings.m_12 + " "; } if (cb.settings.mprice_13 != 0) { msg += "\n (" + cb.settings.mprice_13 + ") " + cb.settings.seperator + " " + cb.settings.m_13 + " "; } if (cb.settings.mprice_14 != 0) { msg += "\n (" + cb.settings.mprice_14 + ") " + cb.settings.seperator + " " + cb.settings.m_14 + " "; } if (cb.settings.mprice_15 != 0) { msg += "\n (" + cb.settings.mprice_15 + ") " + cb.settings.seperator + " " + cb.settings.m_15 + " "; } if (cb.settings.mprice_16 != 0) { msg += "\n (" + cb.settings.mprice_16 + ") " + cb.settings.seperator + " " + cb.settings.m_16 + " "; } if (cb.settings.mprice_17 != 0) { msg += "\n (" + cb.settings.mprice_17 + ") " + cb.settings.seperator + " " + cb.settings.m_17 + " "; } if (cb.settings.mprice_18 != 0) { msg += "\n (" + cb.settings.mprice_18 + ") " + cb.settings.seperator + " " + cb.settings.m_18 + " "; } if (cb.settings.mprice_19 != 0) { msg += "\n (" + cb.settings.mprice_19 + ") " + cb.settings.seperator + " " + cb.settings.m_19 + " "; } if (cb.settings.mprice_20 != 0) { msg += "\n (" + cb.settings.mprice_20 + ") " + cb.settings.seperator + " " + cb.settings.m_20 + " "; } if (cb.settings.mprice_21 != 0) { msg += "\n (" + cb.settings.mprice_21 + ") " + cb.settings.seperator + " " + cb.settings.m_21 + " "; } if (cb.settings.mprice_22 != 0) { msg += "\n (" + cb.settings.mprice_22 + ") " + cb.settings.seperator + " " + cb.settings.m_22 + " "; } if (cb.settings.mprice_23 != 0) { msg += "\n (" + cb.settings.mprice_23 + ") " + cb.settings.seperator + " " + cb.settings.m_23 + " "; } if (cb.settings.mprice_24 != 0) { msg += "\n (" + cb.settings.mprice_24 + ") " + cb.settings.seperator + " " + cb.settings.m_24 + " "; } if (cb.settings.mprice_25 != 0) { msg += "\n (" + cb.settings.mprice_25 + ") " + cb.settings.seperator + " " + cb.settings.m_25 + " "; } if (cb.settings.mprice_26 != 0) { msg += "\n (" + cb.settings.mprice_26 + ") " + cb.settings.seperator + " " + cb.settings.m_26 + " "; } if (cb.settings.mprice_27 != 0) { msg += "\n (" + cb.settings.mprice_27 + ") " + cb.settings.seperator + " " + cb.settings.m_27 + " "; } if (cb.settings.mprice_28 != 0) { msg += "\n (" + cb.settings.mprice_28 + ") " + cb.settings.seperator + " " + cb.settings.m_28 + " "; } if (cb.settings.mprice_29 != 0) { msg += "\n (" + cb.settings.mprice_29 + ") " + cb.settings.seperator + " " + cb.settings.m_29 + " "; } if (cb.settings.mprice_30 != 0) { msg += "\n (" + cb.settings.mprice_30 + ") " + cb.settings.seperator + " " + cb.settings.m_30 + " "; } if (cb.settings.mprice_31 != 0) { msg += "\n (" + cb.settings.mprice_31 + ") " + cb.settings.seperator + " " + cb.settings.m_31 + " "; } if (cb.settings.mprice_32 != 0) { msg += "\n (" + cb.settings.mprice_32 + ") " + cb.settings.seperator + " " + cb.settings.m_32 + " "; } if (cb.settings.mprice_33 != 0) { msg += "\n (" + cb.settings.mprice_33 + ") " + cb.settings.seperator + " " + cb.settings.m_33 + " "; } if (cb.settings.mprice_34 != 0) { msg += "\n (" + cb.settings.mprice_34 + ") " + cb.settings.seperator + " " + cb.settings.m_34 + " "; } if (cb.settings.mprice_35 != 0) { msg += "\n (" + cb.settings.mprice_35 + ") " + cb.settings.seperator + " " + cb.settings.m_35 + " "; } if (cb.settings.mprice_36 != 0) { msg += "\n (" + cb.settings.mprice_36 + ") " + cb.settings.seperator + " " + cb.settings.m_36 + " "; } if (cb.settings.mprice_37 != 0) { msg += "\n (" + cb.settings.mprice_37 + ") " + cb.settings.seperator + " " + cb.settings.m_37 + " "; } if (cb.settings.mprice_38 != 0) { msg += "\n (" + cb.settings.mprice_38 + ") " + cb.settings.seperator + " " + cb.settings.m_38 + " "; } if (cb.settings.mprice_39 != 0) { msg += "\n (" + cb.settings.mprice_39 + ") " + cb.settings.seperator + " " + cb.settings.m_39 + " "; } if (cb.settings.mprice_40 != 0) { msg += "\n (" + cb.settings.mprice_40 + ") " + cb.settings.seperator + " " + cb.settings.m_40 + " "; } if (cb.settings.mprice_41 != 0) { msg += "\n (" + cb.settings.mprice_41 + ") " + cb.settings.seperator + " " + cb.settings.m_41 + " "; } if (cb.settings.mprice_42 != 0) { msg += "\n (" + cb.settings.mprice_42 + ") " + cb.settings.seperator + " " + cb.settings.m_42 + " "; } if (cb.settings.mprice_43 != 0) { msg += "\n (" + cb.settings.mprice_43 + ") " + cb.settings.seperator + " " + cb.settings.m_43 + " "; } if (cb.settings.mprice_44 != 0) { msg += "\n (" + cb.settings.mprice_44 + ") " + cb.settings.seperator + " " + cb.settings.m_44 + " "; } if (cb.settings.mprice_45 != 0) { msg += "\n (" + cb.settings.mprice_45 + ") " + cb.settings.seperator + " " + cb.settings.m_45 + " "; } if (cb.settings.mprice_46 != 0) { msg += "\n (" + cb.settings.mprice_46 + ") " + cb.settings.seperator + " " + cb.settings.m_46 + " "; } if (cb.settings.mprice_47 != 0) { msg += "\n (" + cb.settings.mprice_47 + ") " + cb.settings.seperator + " " + cb.settings.m_47 + " "; } if (cb.settings.mprice_48 != 0) { msg += "\n (" + cb.settings.mprice_48 + ") " + cb.settings.seperator + " " + cb.settings.m_48 + " "; } if (cb.settings.mprice_49 != 0) { msg += "\n (" + cb.settings.mprice_49 + ") " + cb.settings.seperator + " " + cb.settings.m_49 + " "; } if (cb.settings.mprice_50 != 0) { msg += "\n (" + cb.settings.mprice_50 + ") " + cb.settings.seperator + " " + cb.settings.m_50 + " "; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } } function showAppAd(username) { var msg = ""; if (username != undefined) { msg += "Welcome, " + username + ", come and play with us beautiful ladies! \n"; } else { msg += "Dallas Lashes Dice Bot by xPluckySubx \n"; msg += "Each roll gives a task to either Salene, Peach, or Lillybugg \n"; if (cb.settings.s_tokens != 0) { msg += "Tip " + cb.settings.s_tokens + " to give Salene a task. Type #P for a full list of Salene Tasks. (" + [cb.settings.s_tokens * 2] + " tk to choose one!)\n"; } if (cb.settings.p_tokens != 0) { msg += "Tip " + cb.settings.p_tokens + " to give Peach a task. Type #T for a full list of Peach Tasks. (" + [cb.settings.p_tokens * 2] + " tk to choose one!)\n"; } if (cb.settings.l_tokens != 0) { msg += "Tip " + cb.settings.l_tokens + " to give Lillybugg a task. Type #R for a full list of Lillybugg Tasks. (" + [cb.settings.l_tokens * 2] + " tk to choose one!)\n"; } if (cb.settings.c_tokens != 0) { msg += "Tip " + cb.settings.c_tokens + " to flip a coin. \n"; } if (cb.settings.t_menu === 'Yes') { msg += "Type #M to see the full tip menu! \n"; } msg += "Type #HELP for all commands."; if (cb.settings.social_twitter != 'null' && cb.settings.social_twitter != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":twitterlogo - " + cb.settings.social_twitter; } if (cb.settings.social_insta != 'null' && cb.settings.social_insta != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":instagram30 - " + cb.settings.social_insta; } if (cb.settings.social_of != 'null' && cb.settings.social_of != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":onlyfanssm - " + cb.settings.social_of; } if (cb.settings.social_snap != 'null' && cb.settings.social_snap != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":snapchat_30x30 - " + cb.settings.social_snap; } if (cb.settings.social_kik != 'null' && cb.settings.social_kik != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":kik1 - " + cb.settings.social_kik; } if (cb.settings.social_wa != 'null' && cb.settings.social_wa != '.' && cb.settings.socials === 'Yes') { msg += "\n"; msg += ":whatsapp_25 - " + cb.settings.social_wa; } cb.sendNotice(msg, light_colour, light_colour, dark_colour, 'bold'); } } function update_subject() { if (cb.settings.subject_change === 'Yes') { var new_subject = cb.settings.subject_words + " " var subject_p = "Salene Tasks: " + cb.settings.s_tokens + " - " var subject_t = "Peach Tasks: " + cb.settings.p_tokens + " - " var subject_r = "Lillybugg Tasks: " + cb.settings.l_tokens + " - " var tags = "#" + cb.settings.tag_1 + " #" + cb.settings.tag_2 + " #" + cb.settings.tag_3 + " #" + cb.settings.tag_4 + " #" + cb.settings.tag_5 if (cb.settings.s_tokens != 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens != 0) { cb.changeRoomSubject(new_subject + subject_p + subject_t + subject_r + tags); }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens === 0) { cb.changeRoomSubject(new_subject + subject_p + subject_t + tags); }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens != 0) { cb.changeRoomSubject(new_subject + subject_p + subject_r + tags); }; if (cb.settings.s_tokens != 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens === 0) { cb.changeRoomSubject(new_subject + subject_p + tags); }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens != 0) { cb.changeRoomSubject(new_subject + subject_t + subject_r + tags); }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens != 0 && cb.settings.l_tokens === 0) { cb.changeRoomSubject(new_subject + subject_t + tags); }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens != 0) { cb.changeRoomSubject(new_subject + subject_r + tags); }; if (cb.settings.s_tokens === 0 && cb.settings.p_tokens === 0 && cb.settings.l_tokens === 0) { cb.changeRoomSubject(new_subject + tags); }; } } function init() { setSalene(); setPeach(); setLilly(); setTMenu(); advertise(); tipMenu(); update_subject(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.