Bots Home
|
Create an App
weristdortbot
Author:
weristdortdev
Description
Source Code
Launch Bot
Current Users
Created by:
Weristdortdev
var i=0; var ITEMS=5; cb.settings_choices = [ {name: 't4t',type: 'int',minValue: 1, defaultValue: 15, label: '(AT) Minimum tokens required for a thank you message, set to "98765" to turn off.'}, {name: 'tipmsg', type: 'str', minLength: 1, maxLength: 128, defaultValue: 'Thank you [tipper] for your tip!!!', label: "(AT) thank you message"}, {name: 'mcolor', type: 'choice', choice1: '#9F0000', choice2: '#000000', defaultValue: '#9F0000', label: "Color for AutoNotice (AN) #9F0000 = red, #000000 = black"}, {name:'m1', type:'str', required: true, label:' (AN) Message or gif 1',}, {name:'m2', type:'str', required: false, label:'(AN) Message or gif 2',}, {name:'m3', type:'str', required: false, label:'(AN) Message or gif 3',}, {name:'m4', type:'str', required: false, label:'(AN) Message or gif 4',}, {name:'m5', type:'str', required: false, label:'(AN) Message or gif 5',}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 3, label: '(AN) Time in minutes between Notice'}, {name: 'showtokens', type: 'choice', choice1: 'yes', choice2: 'no', defaultvalue: 'yes', label: " show total tip in front of user message:"}, ]; cb.onTip(function (tip) { if (parseInt(tip['amount']) >= cb.settings.t4t){ tipper = tip['from_user']; tipmsg=cb.settings.tipmsg; tipmsg = tipmsg.replace("[tipper]", tipper); cb.chatNotice(tipmsg, tipper);} }); function chatAd() { var m; var MCOLOR='#9F0000'; while (cb.settings['m' + (i + 1)] == 0) { i++; i %= ITEMS; } msg = cb.settings['m' + (i + 1)]; i++; i %= ITEMS; cb.sendNotice(msg,'','',cb.settings['mcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please :followtip99 thank you', user['user'], ['mcolor'], '', 'bold'); }); cb.onMessage(function (msg) { var isMod = msg['is_mod']; var isFan = msg['in_fanclub']; var isModel = msg['user'] == cb.room_slug; var lblue = msg['hasTokens']; var dblue = msg['tipped_recently']; var purple = msg['tipped_alot_recently']; var dpurple = msg['tipped_tons_recently']; //if (lblue) { // msg['c'] = ['#7FBCFF']}; //if (dblue) { // msg['f'] = 'bold'; // msg['c'] = ['#00008B']}; //if (purple) { // msg['f'] = 'bold'; // msg['c'] = ['#DDA0DD']}; //if (dpurple) { // msg['f'] = 'bold'; // msg['c'] = ['#800080']}; if (isMod) { msg['f'] = 'bold'; msg['c'] = ['#FF0000']}; if (isFan) { msg['f'] = 'bold'; msg['c'] = ['#008000']}; if (isModel) { msg['f'] = 'bold'; msg['c'] = ['#FF6500'];} return msg;})
© Copyright Chaturbate 2011- 2024. All Rights Reserved.