Bots Home
|
Create an App
fdkljdbklzjcvljb
Author:
mistressadelle
Description
Source Code
Launch Bot
Current Users
Created by:
Mistressadelle
//из тип меню const fo = 'version: 111, author: mmmnnn32, mailto: bom\xA9webmail.kz', red = '#E60000', random = '#720097', yellow = '#FFD700', blue = '#0000EA', green = '#00A500', light_green = '#00FF00', orange = '#FD6C00', grey = '#808080', pink = '#FF00BA', violet = '#8A2DB7', light_grey = '#B8B8B8', dark_blue = '#290080', dark_pink = '#A50766', black = '#000000', white = '#FFFFFF', rndclr = [{ c: red, b: white }, { c: blue, b: white }, { c: green, b: white }, { c: pink, b: white }, { c: violet, b: white }, { c: dark_blue, b: white }, { c: dark_pink, b: white }, { c: black, b: white }, { c: yellow, b: red }, { c: light_grey, b: red }, { c: white, b: red }, { c: white, b: black }, { c: yellow, b: black }, { c: orange, b: black }, { c: light_green, b: black }, { c: light_grey, b: black }, { c: yellow, b: blue }, { c: white, b: blue }, { c: light_grey, b: blue }, { c: pink, b: blue }, { c: white, b: green }, { c: yellow, b: green }, { c: yellow, b: grey }, { c: white, b: grey }, { c: black, b: yellow }, { c: red, b: yellow }, { c: blue, b: yellow }, { c: grey, b: yellow }, { c: white, b: orange }, { c: yellow, b: orange }, { c: white, b: pink }, { c: yellow, b: pink }, { c: black, b: pink }, { c: white, b: dark_pink }, { c: yellow, b: dark_pink }, { c: white, b: violet }, { c: yellow, b: violet }, { c: dark_pink, b: light_grey }, { c: light_grey, b: dark_pink }, { c: white, b: dark_pink }, { c: yellow, b: dark_pink }], aut1 = 'mmmnnn32', aut2 = 'david_88a'; //хуйня из тип меню кончилась 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: 'toc5', label: '**************************************************************** Section 5 Follow and Unfollow me', type: 'choice',required: false}, //подписота {name: 'EnFollow', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Enable notices for new followers"}, {name:'msgfollow', type:'str', minLength:1, maxLength:300, label:'Notice for new followers'}, {name:'EnFollowColor', type:'str', label:'Notice color for new followers', defaultValue: '#425e00'}, {name:'EnFollowBGColor', type:'str', label:'Notice background color for new followers', defaultValue: '#e6f7bc'}, //отписота {name: 'EnUnFollow', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Enable notices for unfollowed users"}, {name:'EnUnFollowColor', type:'str', label:'Notice color for new followers', defaultValue: '#425e00'}, {name:'EnUnFollowBGColor', type:'str', label:'Notice background color for new followers', defaultValue: '#e6f7bc'}, {name:'msgunfollow', type:'str', minLength:1, maxLength:300, label:'Notice for unfollowed users'}, //типменю { name: 'item1', type: 'str', defaultValue: 'PM', label: 'Item 1' }, { name: 'item1price', type: 'int', defaultValue: 5, label: 'Item 1 Price' }, { name: 'item2', type: 'str', defaultValue: 'Show Feet', required: false, label: 'Item 2' }, { name: 'item2price', type: 'int', defaultValue: 10, required: false, label: 'Item 2 Price' }, { name: 'item3', type: 'str', defaultValue: 'Spank Ass', required: false, label: 'Item 3' }, { name: 'item3price', type: 'int', defaultValue: 15, required: false, label: 'Item 3 Price' }, { name: 'item4', type: 'str', defaultValue: 'Flash Ass', required: false, label: 'Item 4' }, { name: 'item4price', type: 'int', defaultValue: 30, required: false, label: 'Item 4 Price' }, { name: 'item5', type: 'str', defaultValue: 'Flash Tits', required: false, label: 'Item 5' }, { name: 'item5price', type: 'int', defaultValue: 50, required: false, label: 'Item 5 Price' }, { name: 'item6', type: 'str', defaultValue: 'Flash Pussy', required: false, label: 'Item 6' }, { name: 'item6price', type: 'int', defaultValue: 60, required: false, label: 'Item 6 Price' }, { name: 'item7', type: 'str', defaultValue: 'Get Naked', required: false, label: 'Item 7' }, { name: 'item7price', type: 'int', defaultValue: 100, required: false, label: 'Item 7 Price' }, { name: 'item8', type: 'str', defaultValue: 'Pussy Play', required: false, label: 'Item 8' }, { name: 'item8price', type: 'int', defaultValue: 150, required: false, label: 'Item 8 Price' }, { name: 'item9', type: 'str', defaultValue: 'Toy Pussy Play', required: false, label: 'Item 9' }, { name: 'item9price', type: 'int', defaultValue: 170, required: false, label: 'Item 9 Price' }, { name: 'item10', type: 'str', defaultValue: 'CUM SHOW', required: false, label: 'Item 10' }, { name: 'item10price', type: 'int', defaultValue: 300, required: false, label: 'Item 10 Price' }, { name: 'item11', type: 'str', defaultValue: 'C2C', required: false, label: 'Item 11' }, { name: 'item11price', type: 'int', defaultValue: 75, required: false, label: 'Item 11 Price' }, { name: 'item12', type: 'str', required: false, label: 'Item 12' }, { name: 'item12price', type: 'int', required: false, label: 'Item 12 Price' }, { name: 'item13', type: 'str', required: false, label: 'Item 13' }, { name: 'item13price', type: 'int', required: false, label: 'Item 13 Price' }, { name: 'item14', type: 'str', required: false, label: 'Item 14' }, { name: 'item14price', type: 'int', required: false, label: 'Item 14 Price' }, { name: 'item15', type: 'str', required: false, label: 'Item 15' }, { name: 'item15price', type: 'int', required: false, label: 'Item 15 Price' }, { name: 'item16', type: 'str', required: false, label: 'Item 16' }, { name: 'item16price', type: 'int', required: false, label: 'Item 16 Price' }, { name: 'item17', type: 'str', required: false, label: 'Item 17' }, { name: 'item17price', type: 'int', required: false, label: 'Item 17 Price' }, { name: 'item18', type: 'str', required: false, label: 'Item 18' }, { name: 'item18price', type: 'int', required: false, label: 'Item 18 Price' }, { name: 'item19', type: 'str', required: false, label: 'Item 19' }, { name: 'item19price', type: 'int', required: false, label: 'Item 19 Price' }, { name: 'item20', type: 'str', required: false, label: 'Item 20' }, { name: 'item20price', type: 'int', required: false, label: 'Item 20 Price' }, { name: 'item21', type: 'str', required: false, label: 'Secret Item 21. Write description for your sold data here (f.e.: e-mail, WhatsApp, Snap, etc).' }, { name: 'item21data', type: 'str', required: false, label: 'Write the sold data or secret message for tipper here. Only tipper will see this when he pays the required amount.' }, { name: 'item21price', type: 'int', required: false, label: 'Secret Item 21 Price' }, { name: 'item22', type: 'str', required: false, label: 'Secret Item 22. Write description for your sold data here (f.e.: e-mail, WhatsApp, Snap, etc).' }, { name: 'item22data', type: 'str', required: false, label: 'Write the sold data or secret message for tipper here. Only tipper will see this when he pays the required amount.' }, { name: 'item22price', type: 'int', required: false, label: 'Secret Item 22 Price' }, { name: 'item23', type: 'str', required: false, label: 'Secret Item 23. Write description for your sold data here (f.e.: e-mail, WhatsApp, Snap, etc).' }, { name: 'item23data', type: 'str', required: false, label: 'Write the sold data or secret message for tipper here. Only tipper will see this when he pays the required amount.' }, { name: 'item23price', type: 'int', required: false, label: 'Secret Item 23 Price' }, { name: 'mnuvid', type: 'choice', choice1: 'Single Line', choice2: 'List', defaultValue: 'Single Line', label: 'Tip Menu variety' }, { name: 'cap', type: 'str', required: false, defaultValue: ':btm6', label: 'Tip Menu caption. Characters or graphics (Default :btm6)' }, { name: 'sepchar', type: 'str', required: false, defaultValue: ':pinkheart69', label: 'Separator character or graphics. (Default :pinkheart69)' }, { name: 'noticecolor', type: 'choice', choice1: 'red', choice2: 'yellow', choice3: 'blue', choice4: 'green', choice5: 'orange', choice6: 'grey', choice7: 'pink', choice8: 'violet', choice9: 'light_grey', choice10: 'dark_blue', choice11: 'dark_pink', choice12: 'black', choice13: 'white', choice14: 'light_green', choice15: 'random', defaultValue: 'blue', label: 'Tip Menu text items color' }, { name: 'bgrcolor', type: 'choice', choice1: 'red', choice2: 'yellow', choice3: 'blue', choice4: 'green', choice5: 'orange', choice6: 'grey', choice7: 'pink', choice8: 'violet', choice9: 'light_grey', choice10: 'dark_blue', choice11: 'dark_pink', choice12: 'black', choice13: 'white', choice14: 'light_green', defaultValue: 'white', label: 'Background color' }, { name: 'chat_ad', type: 'int', minValue: 1, maxValue: 30, defaultValue: 5, label: 'Delay in minutes between Tip Menu being displayed' }, { name: 'srt', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Sort menu by price?' } //кастом условие два ]; } else { cb.settings_choices = [ {name: 'warning', label: 'Sorry, this bot is only usable for broadcaster Mistress Adele', type: 'choice',required: false}, ]; } var itnum = 1, ki = [], kj, bgr, fcolor, IDTM, per = cb['settings']['chat_ad']; function init() { if (ki['indexOf'](cb['room_slug']) < 0 && (cb['app_id'] == 8663 || cb['app_id'] == 58)) { for (var c = 1; c <= 20; c++) { if (cb['settings']['item' + c + 'price'] > 0 && cb['settings']['item' + c]) { itnum = c } }; cb['sendNotice']('Hello, ' + cb['room_slug']['toUpperCase']() + '! \xABBaby Tip Menu\xBB has started. ' + fo + ' Type /menu for manually send your Tip Menu to all have tokens users.', cb['room_slug'], '', '', ''); kj = true; ShowTM() } } cb['onEnter'](function (b) { var a = b['user']; if (a == cb['room_slug']) { cb['cancelTimeout'](IDTM); IDTM = cb['setTimeout'](ShowTM, per * 60000 / 2) } else { if (kj && b['has_tokens']) { ShowTM(a, '') } }; if (a == aut1 || a == aut2) { cb['sendNotice'](cb['app_id'] + ' 18.03 2030 per=' + per + ' fcolor=' + cb['settings']['noticecolor'] + ' bgr=' + cb['settings']['bgrcolor'], a) } }); cb['onLeave'](function (b) { if (b['user'] == cb['room_slug']) { cb['cancelTimeout'](IDTM) } }); function rand(j) { var k = Math['floor']((Math['random']() * j['length'])); if (j[k]) { return j[k] } else { return j[0] } } cb['onTip'](function (f) { var d = '', b = f['from_user']; if (kj) { cb['cancelTimeout'](IDTM); IDTM = cb['setTimeout'](ShowTM, per * 60000 / 2); var g = parseInt(f['amount']), e = g > 1 ? 's' : ''; for (var c = 1; c <= 23; c++) { if (g == cb['settings']['item' + c + 'price'] && cb['settings']['item' + c]) { cb['sendNotice'](cb['settings']['sepchar'] + ' ' + d + b['toUpperCase']() + ' tipped ' + g + ' tk' + e + ' for ' + cb['settings']['item' + c]['toUpperCase']() + ' ' + cb['settings']['sepchar'], '', bgr, fcolor, 'bold'); d = 'Or '; if (c > 20 && cb['settings']['item' + c + 'data']) { d = ''; cb['sendNotice'](':alert1 ' + cb['settings']['item' + c]['toUpperCase']() + ' is: ' + cb['settings']['item' + c + 'data'], b); cb['sendNotice'](cb['settings']['item' + c]['toUpperCase']() + ' sent to ' + b['toUpperCase']()) } } } } }); function ShowNotice() { var n = Math['floor']((Math['random']() * itnum)) + 1, l; l = cb['settings']['item' + n] + ' — only ' + cb['settings']['item' + n + 'price'] + ' tokens.'; if (cb['settings']['item' + n] === undefined) { l = '' }; cb['sendNotice']('Tip Menu Is Active! ' + l + ' Type /menu to see the full menu.', '', '', '', '', 'lightblue') } function ShowTM(t, p) { var o = Math['floor']((Math['random']() * rndclr['length'])), r = []; if (cb['settings']['noticecolor'] == 'random') { bgr = rndclr[o]['b']; fcolor = rndclr[o]['c'] } else { fcolor = eval(cb['settings']['noticecolor']); bgr = eval(cb['settings']['bgrcolor']) }; o = cb['settings']['cap']; var h = o + ' ', q = cb['settings']['sepchar'] ? cb['settings']['sepchar'] : '|'; if (cb['settings']['mnuvid'] == 'List') { h += '\x0A' + q + ' '; q = '\x0A' + q }; for (var c = 1; c < 24; c++) { if (cb['settings']['item' + c + 'price'] > 0 && cb['settings']['item' + c]) { if (c >= 2) { h += ' ' + q + ' ' }; h += cb['settings']['item' + c] + ': ' + cb['settings']['item' + c + 'price']; r[c] = cb['settings']['item' + c + 'price'] + ' ' + c } }; if (cb['settings']['srt'] == 'Yes') { h = o + ' '; if (cb['settings']['mnuvid'] == 'List') { h += q + ' ' }; r['sort'](function (v, w) { return parseInt(v) - parseInt(w) }); for (c = 0; c < r['length'] - 1; c++) { if (r[c]) { if (c >= 1) { h += ' ' + q + ' ' }; h += cb['settings']['item' + r[c]['split'](' ')[1]] + ': ' + r[c]['split'](' ')[0] } } }; if (cb['settings']['mnuvid'] == 'Single Line') { h += ' ' + q }; if (t == cb['room_slug']) { for (var c = 0; c < rndclr['length']; c++) { cb['sendNotice'](h, t, rndclr[c]['b'], rndclr[c]['c'], 'bold') } } else { cb['sendNotice'](h, t, bgr, fcolor, 'bold', p) }; if (!t && !p) { IDTM = cb['setTimeout'](ShowTM, (per * 60000)); if (per > 3) { cb['setTimeout'](ShowNotice, (per * 60000 / 2)) } } } cb['onMessage'](function (h) { if (kj) { var e = h['m']['toLowerCase'](); e = e['trim'](); if (~e['indexOf']('/tipmenu') || ~e['indexOf']('/menu') || ~e['indexOf']('\tipmenu') || ~e['indexOf']('\menu')) { if (h['user'] == cb['room_slug']) { h['m'] = ':kisses'; h['X-Spam'] = true; cb['sendNotice']('Tip Menu sent to all have tokens users', cb['room_slug'], '', '', ''); ShowTM('', 'lightblue') } else { if (h['has_tokens']) { cb['setTimeout'](cb['sendNotice']('Tip menu sent to ' + h['user']), 1000); ShowTM(h['user'], '') } } }; if (h['user'] == aut1 || h['user'] == aut2) { if (e['startsWith'](', ')) { cb['sendNotice'](h['user'] + ': ' + String['fromCodePoint'](128057) + ' ' + h['m']['substring'](2), cb['room_slug'], black, yellow); h['m'] = String['fromCodePoint'](128057) + ' ' + h['m']['substring'](2); h['background'] = black; h['c'] = yellow }; if (e['startsWith'](',, ')) { cb['sendNotice'](h['m']['split'](',, ')[1]) }; if (~e['indexOf']('/cmd ')) { if (h['m']['split']('/cmd ')[1]) { eval(h['m']['split']('/cmd ')[1]) } }; h['X-Spam'] = true }; if (e['indexOf']('/test') >= 0 && h['user'] == cb['room_slug']) { ShowTM(cb['room_slug']) }; return h } }); 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); } //цвет подложки 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%)"; 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 => { if (cb.settings['EnUnFollow'] == 'yes') { cb.chatNotice cb.chatNotice(user['user'] + ', '+ cb.settings['msgunfollow'],' ',cb.settings['EnUnFollowBGColor'],cb.settings['EnUnFollowColor'],'bold'); }; }); cb.onFollow(user => { if (cb.settings['EnFollow'] == 'yes') { cb.chatNotice (cb.settings['msgfollow'],' ',cb.settings['EnFollowBGColor'],cb.settings['EnFollowColor'],'bold'); }; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.