Bots Home
|
Create an App
fdsdvs
Author:
mistressadelle
Description
Source Code
Launch Bot
Current Users
Created by:
Mistressadelle
//автоответы var srchexpr, maxquestions; srchexpr = []; maxquestions = 80; //тут кончилось var i=1; //штука для кастома //что внутри приложухи if (cb.room_slug == 'mistressadelle') { cb.settings_choices = [ {name: 'toc0', label: '**************************************************************** Welcome back, Mistress! ****************************************************************', type: 'choice',required: false}, {name: 'toc1', label: 'Section_1_Notices************', type: 'choice',required: false}, //список нотисов {name: 'msgonentry', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Display Message 1 privately on entry - set to no for busy rooms"}, {name:'msg1', type:'str', required: false, label:'Message 1',}, {name:'msg2', type:'str', required: false, label:'Message 2',}, {name:'msg3', type:'str', required: false, label:'Message 3',}, {name:'msg4', type:'str', required: false, label:'Message 4',}, {name:'msg5', type:'str', required: false, label:'Message 5',}, {name:'msg6', type:'str', required: false, label:'Message 6',}, {name:'msg7', type:'str', required: false, label:'Message 7',}, {name:'msg8', type:'str', required: false, label:'Message 8',}, {name:'msg9', type:'str', required: false, label:'Message 9',}, {name:'msg10', type:'str', required: false, label:'Message 10',}, {name:'msg11', type:'str', required: false, label:'Message 11',}, {name:'msg12', type:'str', required: false, label:'Message 12',}, {name:'msg13', type:'str', required: false, label:'Message 13',}, {name:'msg14', type:'str', required: false, label:'Message 14',}, {name:'msg15', type:'str', required: false, label:'Message 15',}, {name:'msg16', type:'str', required: false, label:'Message 16',}, {name:'msg17', type:'str', required: false, label:'Message 17',}, {name:'msg18', type:'str', required: false, label:'Message 18',}, {name:'msg19', type:'str', required: false, label:'Message 19',}, {name:'msg20', type:'str', required: false, label:'Message 20',}, {name:'msg21', type:'str', required: false, label:'Message 21',}, {name:'msg22', type:'str', required: false, label:'Message 22',}, {name:'msg23', type:'str', required: false, label:'Message 23',}, {name:'msg24', type:'str', required: false, label:'Message 24',}, {name:'msg25', type:'str', required: false, label:'Message 25',}, {name:'msg26', type:'str', required: false, label:'Message 26',}, {name:'msg27', type:'str', required: false, label:'Message 27',}, {name:'msg28', type:'str', required: false, label:'Message 28',}, {name:'msg29', type:'str', required: false, label:'Message 29',}, {name:'msg30', type:'str', required: false, label:'Message 30',}, {name:'msg31', type:'str', required: false, label:'Message 31',}, {name:'msg32', type:'str', required: false, label:'Message 32',}, {name:'msg33', type:'str', required: false, label:'Message 33',}, {name:'msg34', type:'str', required: false, label:'Message 34',}, {name:'msg35', type:'str', required: false, label:'Message 35',}, {name:'msg36', type:'str', required: false, label:'Message 36',}, {name:'msg37', type:'str', required: false, label:'Message 37',}, {name:'msg38', type:'str', required: false, label:'Message 38',}, {name:'msg39', type:'str', required: false, label:'Message 39',}, {name:'msg40', type:'str', required: false, label:'Message 40',}, {name:'msg41', type:'str', required: false, label:'Message 41',}, {name:'msg42', type:'str', required: false, label:'Message 42',}, {name:'msg43', type:'str', required: false, label:'Message 43',}, {name:'msg44', type:'str', required: false, label:'Message 44',}, {name:'msg45', type:'str', required: false, label:'Message 45',}, {name:'msg46', type:'str', required: false, label:'Message 46',}, {name:'msg47', type:'str', required: false, label:'Message 47',}, {name:'msg48', type:'str', required: false, label:'Message 48',}, {name:'msg49', type:'str', required: false, label:'Message 49',}, {name:'msg50', type:'str', required: false, label:'Message 50',}, {name:'msg51', type:'str', required: false, label:'Message 51',}, {name:'msg52', type:'str', required: false, label:'Message 52',}, {name:'msg53', type:'str', required: false, label:'Message 53',}, {name:'msg54', type:'str', required: false, label:'Message 54',}, {name:'msg55', type:'str', required: false, label:'Message 55',}, {name:'msg56', type:'str', required: false, label:'Message 56',}, {name:'msg57', type:'str', required: false, label:'Message 57',}, {name:'msg58', type:'str', required: false, label:'Message 58',}, {name:'msg59', type:'str', required: false, label:'Message 59',}, {name:'msg60', type:'str', required: false, label:'Message 60',}, {name:'msg61', type:'str', required: false, label:'Message 61',}, {name:'msg62', type:'str', required: false, label:'Message 62',}, {name:'msg63', type:'str', required: false, label:'Message 63',}, {name:'msg64', type:'str', required: false, label:'Message 64',}, {name:'msg65', type:'str', required: false, label:'Message 65',}, {name:'msg66', type:'str', required: false, label:'Message 66',}, {name:'msg67', type:'str', required: false, label:'Message 67',}, {name:'msg68', type:'str', required: false, label:'Message 68',}, {name:'msg69', type:'str', required: false, label:'Message 69',}, {name:'msg70', type:'str', required: false, label:'Message 70',}, {name:'msg71', type:'str', required: false, label:'Message 71',}, {name:'msg72', type:'str', required: false, label:'Message 72',}, {name:'msg73', type:'str', required: false, label:'Message 73',}, {name:'msg74', type:'str', required: false, label:'Message 74',}, {name:'msg75', type:'str', required: false, label:'Message 75',}, {name:'msg76', type:'str', required: false, label:'Message 76',}, {name:'msg77', type:'str', required: false, label:'Message 77',}, {name:'msg78', type:'str', required: false, label:'Message 78',}, {name:'msg79', type:'str', required: false, label:'Message 79',}, {name:'msg80', type:'str', required: false, label:'Message 80',}, {name:'msg81', type:'str', required: false, label:'Message 81',}, {name:'msg82', type:'str', required: false, label:'Message 82',}, {name:'msg83', type:'str', required: false, label:'Message 83',}, {name:'msg84', type:'str', required: false, label:'Message 84',}, {name:'msg85', type:'str', required: false, label:'Message 85',}, {name:'msg86', type:'str', required: false, label:'Message 86',}, {name:'msg87', type:'str', required: false, label:'Message 87',}, {name:'msg88', type:'str', required: false, label:'Message 88',}, {name:'msg89', type:'str', required: false, label:'Message 89',}, {name:'msg90', type:'str', required: false, label:'Message 90',}, {name:'msg91', type:'str', required: false, label:'Message 91',}, {name:'msg92', type:'str', required: false, label:'Message 92',}, {name:'msg93', type:'str', required: false, label:'Message 93',}, {name:'msg94', type:'str', required: false, label:'Message 94',}, {name:'msg95', type:'str', required: false, label:'Message 95',}, {name:'msg96', type:'str', required: false, label:'Message 96',}, {name:'msg97', type:'str', required: false, label:'Message 97',}, {name:'msg98', type:'str', required: false, label:'Message 98',}, {name:'msg99', type:'str', required: false, label:'Message 99',}, {name:'msg100', type:'str', required: false, label:'Message 100',}, //цвет нотисов {name:'msgcolor', type:'str', label:'Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name:'background', type: 'str', lavel: 'Color of backround is rainbow, dont change', defaultValue:'linear-gradient(to right, rgba(255,50,50,0.1) 0%,rgba(255,255,48,0.1) 26%,rgba(40,255,251,0.1) 60%,rgba(169,40,255,0.1) 99%)'}, //время в минутах {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notices being displayed (minimum 1)'}, {name: 'toc2', label: 'Section_2_Rainbow_chat************', type: 'choice',required: false}, //цветной текст {name: 'InputName1', type: 'str', label: 'Not used for anything', defaultValue: 'SomeText'}, {name: 'toc3', label: 'Section_3_Hide_gray_chatting************', type: 'choice',required: false}, //затык серых { name: "msg_replace", type: "str", minLength: 1, maxLength: 255, defaultValue: "meow meow meow", label: "Replace messages of users without tokens with this message", required: true }, { name: "msg_control", label: "Show message to all", type: "choice", choice1: "yes", choice2: "no", defaultValue: "no", required: true }, //rules {name: 'toc4', label: 'Section_4_Room_Rules************', type: 'choice',required: false}, {name:'rule1', type:'str', minLength:1, maxLength:300, label:'Rule #1'}, {name:'rule2', type:'str', minLength:1, maxLength:300, label:'Rule #2 (optional)', required:false}, {name:'rule3', type:'str', minLength:1, maxLength:300, label:'Rule #3 (optional)', required:false}, {name:'rule4', type:'str', minLength:1, maxLength:300, label:'Rule #4 (optional)', required:false}, {name:'rule5', type:'str', minLength:1, maxLength:300, label:'Rule #5 (optional)', required:false}, {name:'rule6', type:'str', minLength:1, maxLength:300, label:'Rule #6 (optional)', required:false}, {name:'rule7', type:'str', minLength:1, maxLength:300, label:'Rule #7 (optional)', required:false}, {name:'rule8', type:'str', minLength:1, maxLength:300, label:'Rule #8 (optional)', required:false}, {name:'rule9', type:'str', minLength:1, maxLength:300, label:'Rule #9 (optional)', required:false}, {name:'rule10', type:'str', minLength:1, maxLength:300, label:'Rule #10 (optional)', required:false}, {name:'advertisement_wait_time', type:'choice', label:'Notification Time (in minutes)', choice1:5, choice2:10, choice3:15, choice4:20, choice5:25, choice6:30, choice7:45, choice8:60, defaultValue:15}, //подписота {name:'msgfollow', type:'str', minLength:1, maxLength:300, label:'Notice for new followers'}, //отписота {name:'msgunfollow', type:'str', minLength:1, maxLength:300, label:'Notice for unfollowed users'}, //автоответы {name: 'item1q', type: 'str', label: 'Question 1 keywords (no spaces)', defaultValue: 'ugly/fat/dumpy/poop'}, {name: 'item1a', type: 'str', label: 'Question 1 answer', defaultValue: 'mute-Please be Respectful or you will be Banned.'}, {name: 'item2q', type: 'str', label: 'Question 2 keywords', defaultValue: 'suck&cock', required: false}, {name: 'item2a', type: 'str', label: 'Question 2 answer', defaultValue: 'Watch a performer suck that cock for a tip of 150. Want to have more blowjobs? Try finding or purchasing a Bronze Blowjob Coin. Coins stay with you for several weeks and will convince us to give you a blowjob show more than once.', required: false}, {name: 'item3q', type: 'str', label: 'Question 3 keywords', defaultValue: 'what/have&instagram', required: false}, {name: 'item3a', type: 'str', label: 'Question 3 answer', defaultValue: '@username', required: false}, {name: 'item4q', type: 'str', label: 'Question 4 keywords', defaultValue: 'boobs/tits&real/natural/fake', required: false}, {name: 'item4a', type: 'str', label: 'Question 4 answer', defaultValue: "Don't ask please", required: false}, {name: 'item5q', type: 'str', label: 'Question 5 keywords', defaultValue: 'what&are&tats/tattoos/ink', required: false}, {name: 'item5a', type: 'str', label: 'Question 5 answer', defaultValue: ':readbio', required: false}, {name: 'item6q', type: 'str', label: 'Question 6 keywords', defaultValue: 'show/open/zoom&boobs/boob/bobs/tits/pussy/ass', required: false}, {name: 'item6a', type: 'str', label: 'Question 6 answer', defaultValue: 'mute-Please tip for requests', required: false}, {name: 'item7q', type: 'str', label: 'Question 7 keywords', defaultValue: 'slut/whore/bitch/bb', required: false}, {name: 'item7a', type: 'str', label: 'Question 7 answer', defaultValue: 'mute-Please do not use rude words in my room', required: false}, {name: 'item8q', type: 'str', label: 'Question 8 keywords', defaultValue: 'watch&my&cam', required: false}, {name: 'item8a', type: 'str', label: 'Question 8 answer', defaultValue: 'mute-Please do not spam my room', required: false}, {name: 'item9q', type: 'str', label: 'Question 9 keywords', defaultValue: '', required: false}, {name: 'item9a', type: 'str', label: 'Question 9 answer', defaultValue: '', required: false}, {name: 'item10q', type: 'str', label: 'Question 10 keywords', defaultValue: '', required: false}, {name: 'item10a', type: 'str', label: 'Question 10 answer', defaultValue: '', required: false}, {name: 'item11q', type: 'str', label: 'Question 11 keywords', defaultValue: '', required: false}, {name: 'item11a', type: 'str', label: 'Question 11 answer', defaultValue: '', required: false}, {name: 'item12q', type: 'str', label: 'Question 12 keywords', defaultValue: '', required: false}, {name: 'item12a', type: 'str', label: 'Question 12 answer', defaultValue: '', required: false}, {name: 'item13q', type: 'str', label: 'Question 13 keywords', defaultValue: '', required: false}, {name: 'item13a', type: 'str', label: 'Question 13 answer', defaultValue: '', required: false}, {name: 'item14q', type: 'str', label: 'Question 14 keywords', defaultValue: '', required: false}, {name: 'item14a', type: 'str', label: 'Question 14 answer', defaultValue: '', required: false}, {name: 'item15q', type: 'str', label: 'Question 15 keywords', defaultValue: '', required: false}, {name: 'item15a', type: 'str', label: 'Question 15 answer', defaultValue: '', required: false}, {name: 'item16q', type: 'str', label: 'Question 16 keywords', defaultValue: '', required: false}, {name: 'item16a', type: 'str', label: 'Question 16 answer', defaultValue: '', required: false}, {name: 'item17q', type: 'str', label: 'Question 17 keywords', defaultValue: '', required: false}, {name: 'item17a', type: 'str', label: 'Question 17 answer', defaultValue: '', required: false}, {name: 'item18q', type: 'str', label: 'Question 18 keywords', defaultValue: '', required: false}, {name: 'item18a', type: 'str', label: 'Question 18 answer', defaultValue: '', required: false}, {name: 'item19q', type: 'str', label: 'Question 19 keywords', defaultValue: '', required: false}, {name: 'item19a', type: 'str', label: 'Question 19 answer', defaultValue: '', required: false}, {name: 'item20q', type: 'str', label: 'Question 20 keywords', defaultValue: '', required: false}, {name: 'item20a', type: 'str', label: 'Question 20 answer', defaultValue: '', required: false}, {name: 'item21q', type: 'str', label: 'Question 21 keywords', defaultValue: '', required: false}, {name: 'item21a', type: 'str', label: 'Question 21 answer', defaultValue: '', required: false}, {name: 'item22q', type: 'str', label: 'Question 22 keywords', defaultValue: '', required: false}, {name: 'item22a', type: 'str', label: 'Question 22 answer', defaultValue: '', required: false}, {name: 'item23q', type: 'str', label: 'Question 23 keywords', defaultValue: '', required: false}, {name: 'item23a', type: 'str', label: 'Question 23 answer', defaultValue: '', required: false}, {name: 'item24q', type: 'str', label: 'Question 24 keywords', defaultValue: '', required: false}, {name: 'item24a', type: 'str', label: 'Question 24 answer', defaultValue: '', required: false}, {name: 'item25q', type: 'str', label: 'Question 25 keywords', defaultValue: '', required: false}, {name: 'item25a', type: 'str', label: 'Question 25 answer', defaultValue: '', required: false}, {name: 'item26q', type: 'str', label: 'Question 26 keywords', defaultValue: '', required: false}, {name: 'item26a', type: 'str', label: 'Question 26 answer', defaultValue: '', required: false}, {name: 'item27q', type: 'str', label: 'Question 27 keywords', defaultValue: '', required: false}, {name: 'item27a', type: 'str', label: 'Question 27 answer', defaultValue: '', required: false}, {name: 'item28q', type: 'str', label: 'Question 28 keywords', defaultValue: '', required: false}, {name: 'item28a', type: 'str', label: 'Question 28 answer', defaultValue: '', required: false}, {name: 'item29q', type: 'str', label: 'Question 29 keywords', defaultValue: '', required: false}, {name: 'item29a', type: 'str', label: 'Question 29 answer', defaultValue: '', required: false}, {name: 'item30q', type: 'str', label: 'Question 30 keywords', defaultValue: '', required: false}, {name: 'item30a', type: 'str', label: 'Question 30 answer', defaultValue: '', required: false}, {name: 'item31q', type: 'str', label: 'Question 31 keywords', defaultValue: '', required: false}, {name: 'item31a', type: 'str', label: 'Question 31 answer', defaultValue: '', required: false}, {name: 'item32q', type: 'str', label: 'Question 32 keywords', defaultValue: '', required: false}, {name: 'item32a', type: 'str', label: 'Question 32 answer', defaultValue: '', required: false}, {name: 'item33q', type: 'str', label: 'Question 33 keywords', defaultValue: '', required: false}, {name: 'item33a', type: 'str', label: 'Question 33 answer', defaultValue: '', required: false}, {name: 'item34q', type: 'str', label: 'Question 34 keywords', defaultValue: '', required: false}, {name: 'item34a', type: 'str', label: 'Question 34 answer', defaultValue: '', required: false}, {name: 'item35q', type: 'str', label: 'Question 35 keywords', defaultValue: '', required: false}, {name: 'item35a', type: 'str', label: 'Question 35 answer', defaultValue: '', required: false}, {name: 'item36q', type: 'str', label: 'Question 36 keywords', defaultValue: '', required: false}, {name: 'item36a', type: 'str', label: 'Question 36 answer', defaultValue: '', required: false}, {name: 'item37q', type: 'str', label: 'Question 37 keywords', defaultValue: '', required: false}, {name: 'item37a', type: 'str', label: 'Question 37 answer', defaultValue: '', required: false}, {name: 'item38q', type: 'str', label: 'Question 38 keywords', defaultValue: '', required: false}, {name: 'item38a', type: 'str', label: 'Question 38 answer', defaultValue: '', required: false}, {name: 'item39q', type: 'str', label: 'Question 39 keywords', defaultValue: '', required: false}, {name: 'item39a', type: 'str', label: 'Question 39 answer', defaultValue: '', required: false}, {name: 'item40q', type: 'str', label: 'Question 40 keywords', defaultValue: '', required: false}, {name: 'item40a', type: 'str', label: 'Question 40 answer', defaultValue: '', required: false}, {name: 'item41q', type: 'str', label: 'Question 41 keywords', defaultValue: '', required: false}, {name: 'item41a', type: 'str', label: 'Question 41 answer', defaultValue: '', required: false}, {name: 'item42q', type: 'str', label: 'Question 42 keywords', defaultValue: '', required: false}, {name: 'item42a', type: 'str', label: 'Question 42 answer', defaultValue: '', required: false}, {name: 'item43q', type: 'str', label: 'Question 43 keywords', defaultValue: '', required: false}, {name: 'item43a', type: 'str', label: 'Question 43 answer', defaultValue: '', required: false}, {name: 'item44q', type: 'str', label: 'Question 44 keywords', defaultValue: '', required: false}, {name: 'item44a', type: 'str', label: 'Question 44 answer', defaultValue: '', required: false}, {name: 'item45q', type: 'str', label: 'Question 45 keywords', defaultValue: '', required: false}, {name: 'item45a', type: 'str', label: 'Question 45 answer', defaultValue: '', required: false}, {name: 'item46q', type: 'str', label: 'Question 46 keywords', defaultValue: '', required: false}, {name: 'item46a', type: 'str', label: 'Question 46 answer', defaultValue: '', required: false}, {name: 'item47q', type: 'str', label: 'Question 47 keywords', defaultValue: '', required: false}, {name: 'item47a', type: 'str', label: 'Question 47 answer', defaultValue: '', required: false}, {name: 'item48q', type: 'str', label: 'Question 48 keywords', defaultValue: '', required: false}, {name: 'item48a', type: 'str', label: 'Question 48 answer', defaultValue: '', required: false}, {name: 'item49q', type: 'str', label: 'Question 49 keywords', defaultValue: '', required: false}, {name: 'item49a', type: 'str', label: 'Question 49 answer', defaultValue: '', required: false}, {name: 'item50q', type: 'str', label: 'Question 50 keywords', defaultValue: '', required: false}, {name: 'item50a', type: 'str', label: 'Question 50 answer', defaultValue: '', required: false}, {name: 'item51q', type: 'str', label: 'Question 51 keywords', defaultValue: '', required: false}, {name: 'item51a', type: 'str', label: 'Question 51 answer', defaultValue: '', required: false}, {name: 'item52q', type: 'str', label: 'Question 52 keywords', defaultValue: '', required: false}, {name: 'item52a', type: 'str', label: 'Question 52 answer', defaultValue: '', required: false}, {name: 'item53q', type: 'str', label: 'Question 53 keywords', defaultValue: '', required: false}, {name: 'item53a', type: 'str', label: 'Question 53 answer', defaultValue: '', required: false}, {name: 'item54q', type: 'str', label: 'Question 54 keywords', defaultValue: '', required: false}, {name: 'item54a', type: 'str', label: 'Question 54 answer', defaultValue: '', required: false}, {name: 'item55q', type: 'str', label: 'Question 55 keywords', defaultValue: '', required: false}, {name: 'item55a', type: 'str', label: 'Question 55 answer', defaultValue: '', required: false}, {name: 'item56q', type: 'str', label: 'Question 56 keywords', defaultValue: '', required: false}, {name: 'item56a', type: 'str', label: 'Question 56 answer', defaultValue: '', required: false}, {name: 'item57q', type: 'str', label: 'Question 57 keywords', defaultValue: '', required: false}, {name: 'item57a', type: 'str', label: 'Question 57 answer', defaultValue: '', required: false}, {name: 'item58q', type: 'str', label: 'Question 58 keywords', defaultValue: '', required: false}, {name: 'item58a', type: 'str', label: 'Question 58 answer', defaultValue: '', required: false}, {name: 'item59q', type: 'str', label: 'Question 59 keywords', defaultValue: '', required: false}, {name: 'item59a', type: 'str', label: 'Question 59 answer', defaultValue: '', required: false}, {name: 'item60q', type: 'str', label: 'Question 60 keywords', defaultValue: '', required: false}, {name: 'item60a', type: 'str', label: 'Question 60 answer', defaultValue: '', required: false}, {name: 'item61q', type: 'str', label: 'Question 61 keywords', defaultValue: '', required: false}, {name: 'item61a', type: 'str', label: 'Question 61 answer', defaultValue: '', required: false}, {name: 'item62q', type: 'str', label: 'Question 62 keywords', defaultValue: '', required: false}, {name: 'item62a', type: 'str', label: 'Question 62 answer', defaultValue: '', required: false}, {name: 'item63q', type: 'str', label: 'Question 63 keywords', defaultValue: '', required: false}, {name: 'item63a', type: 'str', label: 'Question 63 answer', defaultValue: '', required: false}, {name: 'item64q', type: 'str', label: 'Question 64 keywords', defaultValue: '', required: false}, {name: 'item64a', type: 'str', label: 'Question 64 answer', defaultValue: '', required: false}, {name: 'item65q', type: 'str', label: 'Question 65 keywords', defaultValue: '', required: false}, {name: 'item65a', type: 'str', label: 'Question 65 answer', defaultValue: '', required: false}, {name: 'item66q', type: 'str', label: 'Question 66 keywords', defaultValue: '', required: false}, {name: 'item66a', type: 'str', label: 'Question 66 answer', defaultValue: '', required: false}, {name: 'item67q', type: 'str', label: 'Question 67 keywords', defaultValue: '', required: false}, {name: 'item67a', type: 'str', label: 'Question 67 answer', defaultValue: '', required: false}, {name: 'item68q', type: 'str', label: 'Question 68 keywords', defaultValue: '', required: false}, {name: 'item68a', type: 'str', label: 'Question 68 answer', defaultValue: '', required: false}, {name: 'item69q', type: 'str', label: 'Question 69 keywords', defaultValue: '', required: false}, {name: 'item69a', type: 'str', label: 'Question 69 answer', defaultValue: '', required: false}, {name: 'item70q', type: 'str', label: 'Question 70 keywords', defaultValue: '', required: false}, {name: 'item70a', type: 'str', label: 'Question 70 answer', defaultValue: '', required: false}, {name: 'item71q', type: 'str', label: 'Question 71 keywords', defaultValue: '', required: false}, {name: 'item71a', type: 'str', label: 'Question 71 answer', defaultValue: '', required: false}, {name: 'item72q', type: 'str', label: 'Question 72 keywords', defaultValue: '', required: false}, {name: 'item72a', type: 'str', label: 'Question 72 answer', defaultValue: '', required: false}, {name: 'item73q', type: 'str', label: 'Question 73 keywords', defaultValue: '', required: false}, {name: 'item73a', type: 'str', label: 'Question 73 answer', defaultValue: '', required: false}, {name: 'item74q', type: 'str', label: 'Question 74 keywords', defaultValue: '', required: false}, {name: 'item74a', type: 'str', label: 'Question 74 answer', defaultValue: '', required: false}, {name: 'item75q', type: 'str', label: 'Question 75 keywords', defaultValue: '', required: false}, {name: 'item75a', type: 'str', label: 'Question 75 answer', defaultValue: '', required: false}, {name: 'item76q', type: 'str', label: 'Question 76 keywords', defaultValue: '', required: false}, {name: 'item76a', type: 'str', label: 'Question 76 answer', defaultValue: '', required: false}, {name: 'item77q', type: 'str', label: 'Question 77 keywords', defaultValue: '', required: false}, {name: 'item77a', type: 'str', label: 'Question 77 answer', defaultValue: '', required: false}, {name: 'item78q', type: 'str', label: 'Question 78 keywords', defaultValue: '', required: false}, {name: 'item78a', type: 'str', label: 'Question 78 answer', defaultValue: '', required: false}, {name: 'item79q', type: 'str', label: 'Question 79 keywords', defaultValue: '', required: false}, {name: 'item79a', type: 'str', label: 'Question 79 answer', defaultValue: '', required: false}, {name: 'item80q', type: 'str', label: 'Question 80 keywords', defaultValue: '', required: false}, {name: 'item80a', type: 'str', label: 'Question 80 answer', defaultValue: '', required: false}, {name: 'mutegreygraphics', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute grey graphics?"}, {name: 'mutestickykeys', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute sticky keys?"}, {name: 'muteallcaps', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mute all caps?"}, //кастом условие два ]; } else { cb.settings_choices = [ {name: 'warning', label: 'Sorry, this bot is only usable for broadcaster Mistress Adele', type: 'choice',required: false}, ]; } var i=1; //variables from room rules var meanBroadcasters = ['missilex']; //вход юзера cb.onEnter(function(user) { if (cb.settings['msgonentry'] == 'yes') { cb.sendNotice('Welcome ' + user['user'] + '! ' + cb.settings['msg1'],user['user'],'',cb.settings['msgcolor'],'bold'); } }); //rules cb.onEnter(function(user) { if(meanBroadcasters.indexOf(cb.room_slug) < 0) { cb.sendNotice('Lets start conversation, ' + user['user'] + '. First read my room rules before chatting. Hope you will follow them!', user['user'], '#DBFFDB', '', 'bold'); displayRules(user); } }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = '###### ROOM RULES ######'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\nRule #'+ i +': ' + cb.settings['rule'+i]; } notices += '\n######################'; cb.sendNotice(notices, username, '#E6FFFF', '#003399', 'bold'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { if(meanBroadcasters.indexOf(cb.room_slug) < 0) displayRules(); } init(); //штука, отвечающая за нотифайер function chatAd() { var msg; while (cb.settings['msg' + i] == 0) { //пропустить пустые i++; if (i > 100) { //вернуться к первому i=1; } } msg = cb.settings['msg' + i]; i++; if (i > 100) { //вернуться к первому i=1; } cb.sendNotice(msg,'',cb.settings['background'],cb.settings['msgcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); function is_model(message) { return (message.user == cb.room_slug); } function checkmsg(msg) { var i, tmpmsg, re, ans; tmpmsg = msg['m']; for (i = 1; i <= maxquestions; i++) { ans = cb.settings['item' + i + 'a']; re = new RegExp(srchexpr[i], "i"); if (srchexpr[i].length > 0) { if (tmpmsg.search(re) != -1) { if (ans.search('mute-') != -1) { msg['X-Spam'] = true; cb.chatNotice(ans.replace('mute-',''),msg['user'],'','','bold'); } else { cb.chatNotice('Answer: ' + ans,'','','','bold'); } } } } if ((tmpmsg.search(/:\b/) != -1) && (!msg['has_tokens']) && (cb.settings['mutegreygraphics'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No graphics please',msg['user'],'','','bold'); } if ((tmpmsg.search(/(.)\1{3}/) != -1) && (cb.settings['mutestickykeys'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No sticky keys please',msg['user'],'','','bold'); } if ((tmpmsg === tmpmsg.toUpperCase()) && (cb.settings['muteallcaps'] == 'yes')){ msg['X-Spam'] = true; cb.chatNotice('No all caps please',msg['user'],'','','bold'); } if (msg['X-Spam'] == true) { cb.chatNotice(msg['user'] + "'s message has been muted"); } } function retest() { var str, keywordarray, keywordstr, expressout, k, i, j; for (k = 1; k <= maxquestions; k++) { expressout = ""; str = cb.settings['item' + k + 'q']; if (str != null && str.length > 0) { keywordarray = str.split("&"); for (i = 0; i <= (keywordarray.length - 1); i++) { keywordstr = keywordarray[i].split("/"); expressout += "("; for (j = 0; j <= (keywordstr.length - 1); j++) { if (j != 0) { expressout += '|'; } expressout += "(?=.*" + keywordstr[j] + ")"; } expressout += ")"; } } srchexpr[k] = expressout; } } function init() { retest(); } init(); //цвет подложки cb.onMessage(function (message) {message['background'] = "linear-gradient(to right, rgba(255,50,50,0.3) 0%,rgba(255,255,48,0.3) 26%,rgba(40,255,251,0.3) 60%,rgba(169,40,255,0.3) 99%)"; checkmsg(msg); var msg = cb.settings.msg_replace; if ((!message.has_tokens) && (!message.is_mod) && (!message.in_fanclub) && (!is_model(message))) { message.m = msg; if (cb.settings.msg_control == "no"){ message.m = msg; message['X-Spam'] = true; } } return message; }); cb.onUnFollow(user => { cb.chatNotice(user['user'] + ', '+ cb.settings['msgunfollow'],' ',cb.settings['background'],cb.settings['msgcolor'],'bold'); }); cb.onFollow(user => { cb.chatNotice(user['user'] +', '+ cb.settings['msgfollow'],' ',cb.settings['background'],cb.settings['msgcolor'],'bold'); });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.