Bots Home
|
Create an App
new accunt
Author:
papapa
Description
Source Code
Launch Bot
Current Users
Created by:
Papapa
cb.settings_choices = [ { name: 'msgcolor', type: 'str', label: 'El color del mensaje', defaultValue: '#FF0040' }, { name: 'notice_wait_time', type: 'choice', label: 'In minutes, how often should the app advertise itself?', choice1: 1, choice2: 10, choice3: 15, choice4: 20, choice5: 25, choice6: 30, choice7: 45, choice8: 60, defaultValue: 10 }, { name: 'dantokens', type: 'choice', label: 'Avisar a los que dan tks', choice1: 'yes', choice2: 'no', default: 'yes' }, { name: 'darkpurple', type: 'choice', label: 'Avisar a morados oscuros', choice1: 'yes', choice2: 'no', default: 'yes' }, { name: 'lightpurple', type: 'choice', label: 'Incluir a morados claros', choice1: 'yes', choice2: 'no', default: 'yes' }, { name: 'darkblue', type: 'choice', label: 'Incluir a azules oscuros', choice1: 'yes', choice2: 'no', default: 'yes' }, { name: 'lightblue', type: 'choice', label: 'Incluir a azules claros', choice1: 'yes', choice2: 'no', default: 'no' }, { name: 'green', type: 'choice', label: 'Avisar a fanclubs, mods, a ti misma', choice1: 'yes', choice2: 'no', default: 'yes' } ]; var confirmacion=0; cb.onTip(function (tip) { if(cb.settings.dantokens=='yes'){ var tipper = tip['from_user']; confirmacion=1; showAppAd(tipper); } }); cb.onEnter(function (user) { // username=user['user']; showAppAd(user['user']); }); function showAppAd(username) { var msg = ""; msg +="Follow my new account Adeliinecrye" var color=cb.settings['msgcolor']; if(cb.settings.lightblue=='yes'){ cb.sendNotice(msg, username, '', color, 'bolder', 'lightblue'); } else if(cb.settings.darkblue=='yes'){ cb.sendNotice(msg, username, '', color, 'bolder', 'darkblue'); } else if(cb.settings.lightpurple=='yes'){ cb.sendNotice(msg, username, '', color, 'bolder', 'lightpurple'); } else if(cb.settings.darkpurple=='yes'){ cb.sendNotice(msg, username, '', color, 'bolder', 'darkpurple'); } if(cb.settings.green=='yes'){ cb.sendNotice(msg, username, '', color, 'bolder', 'green'); cb.sendNotice(msg, username, '', color, 'bolder', 'red'); cb.sendNotice(msg, cb.room_slug, '', color, 'bolder'); } if(confirmacion==1){ cb.sendNotice(msg, username, '', color, 'bolder'); confirmacion=0; } } function advertise() { showAppAd(); cb.setTimeout(advertise, parseInt(cb.settings.notice_wait_time) * 60000); } advertise();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.