Bots Home
|
Create an App
milestone marker
Author:
model
Description
Source Code
Launch Bot
Current Users
Created by:
Model
cb.settings_choices = [ { name: 'current', type: 'int', minValue: 1, defaultValue: 99500, label: 'Current number of followers. (Be precise)', required: true, }, { name: 'target', type: 'int', minValue: 10, defaultValue: 100000, label: 'What number are we trying to reach?', required: true, }, { name: 'prize', type: 'str', label: '[Optional] Prize when goal is reached', required: false, defaultValue: '' } ]; let count; let goal; let remain; const bold = 'bold'; const all = ''; const theme = { success: { color: '#009900', background: '#9efa9e', }, error: { color: '#cc0000', background: '#ffb3b3', }, primary: { color: '#ffcc33', background: '#1a1a1a', }, raisin: { color: '#0d1137', background: '#e52165' } }; cb.onStart(({ user }) => { count = cb.settings.current; goal = cb.settings.target; remain = goal - count; const { color, background } = theme.raisin; cb.sendNotice(`${user} has started the app`, all, background, color, bold); }); cb.onFollow((user) => { count += 1; remain = goal - count; const noticeNormal = `${user.user} is follower ${count}\nOnly ${remain} more followers until ${goal}`; const noticeGoal = `:congratsddddccvvv ${goal} FOLLOWERS :cashwho-congratulations-elf ${cb.room_slug} :bry_congratulations2 ${goal} FOLLOWERS `; const notice = count === goal ? noticeGoal : noticeNormal; const { background, color } = theme.primary; cb.sendNotice(notice, all, background, color, bold); }); cb.onUnFollow(({ user }) => { count -= 1; remain = goal - count; }); cb.onEnter(({ user }) => { cb.sendNotice(user); });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.