Bots Home
|
Create an App
sweetariaapower
Author:
callmesteve
Description
Source Code
Launch Bot
Current Users
Created by:
Callmesteve
cb.settings_choices = [ {name: 'modmsg', label: 'Mod Join Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: "Remember, don't have too heavy of a hand :wink" }, {name: 'modmsgcolor', label:'Mod Message Color (html code default dark red #9F000F)', type:'str', required: false, defaultValue: '#9F000F'}, {name: 'fanclubjoinmsg', label: 'Fan Club Join Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: 'Thank You!!!!' }, {name: 'fanclubjoingif', label: 'Fan Club Join Gif', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: ':sweetariaapower' }, {name: 'roommsg', label: 'Join Room Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: 'Hi, my name is Taria!'}, {name: 'roomgif', label: 'Join Room Gif', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: ':Sweetariaa_bymasterwj' }, {name: 'roomcolor', label:'Join Room Color (html code default dark red #9F000F)', type:'str', defaultValue: '#9F000F'}, {name: 'fanclubmsg', label: 'Fan Club Join Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: 'Welcome Back! Just want to say thanks for being in my Fan Club!' }, {name: 'fanclubmsgcolor', label:'Fan Club Mesage Color (html code default green #008000)', type:'str', defaultValue: '#008000'}, {name: 'usermsg', label: 'Join Room Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: 'Please remember the rules of my room: ' }, {name: 'usermsgcolor', label:'Join Room Color (html code default dark green #008000)', type:'str', defaultValue: '#008000'}, {name: 'greymsg', label: 'Grey Join Message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: 'Please, no requests unless you can tip' }, {name: 'defaultcolor', label:'Default Color(html code default dark purple #321640)', type:'str', defaultValue: '#321640'}, {name: 'specialmsgcolor', label:'Default Special Message Color(html code default dark purple #321640)', type:'str', defaultValue: '#321640'}, {name: 'specialmsg', label: 'Special message', type: 'str', required: false, minLength: 1, maxLength: 256, defaultValue: '' }, ]; // Send a message to the chat room to thank user joining Fan Club // cb.onMessage(function (msg) { if (msg['m'].includes('Joined') && msg['m'].includes('Fan Club')) { cb.chatNotice(cb.settings.fanclubjoinmsg + " " + cb.settings.fanclubjoingif); } }); cb.onMessage(function (msg) { if (msg['m'].includes('Notice')) { cb.chatNotice(cb.settings.fanclubjoinmsg + " " + cb.settings.fanclubjoingif); } }); // Send custom messages depending on type of user: Mod, FanClub, Not in Fan Club, Greys // // Also a special messages can be set // // Messages only seen by user not the whole chat // cb.onEnter(function(user) { if (user['in_fanclub'] || user['is_mod']) { cb.sendNotice(('Hi ' + user['user'] + '! ' + cb.settings.modmsg), user['user'],'bold','',cb.settings.modmsgcolor,'red'); cb.sendNotice(('Hi ' + user['user'] + '! ' + cb.settings.fanclubmsg), user['user'],'bold','',cb.settings.fanclubmsgcolor,'green'); } else { if (cb.settings.joinroommsg != "") { cb.sendNotice((cb.settings.roommsg), user['user'],'bold','',cb.settings.roomcolor); } cb.sendNotice((cb.settings.roomgif), user['user']); if (!user['in_fanclub'] ) { cb.sendNotice((cb.settings.usermsg), user['user'],'bold','',cb.settings.usermsgcolor); if (!user['has_tokens']) { cb.sendNotice((cb.settings.greymsg), user['user'],'bolder','',cb.settings.defaultcolor); } } } // Special Message // if (cb.settings.specialmsg != '' ) { cb.sendNotice((cb.settings.specialmsg), user['user'],'bold','',cb.settings.specialmsgcolor); } });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.