Bots Home
|
Create an App
Chat-Only Tip Goal
Author:
meepsalot
Description
Source Code
Launch Bot
Current Users
Created by:
Meepsalot
cb.settings_choices = [ { name: 'title', type: 'str', minLength: 1, maxLength: 255, defaultValue: "Follow Meepsalot", label: "--------Goal Name--------" }, { name: 'goal', type: 'int', minValue: 0, defaultValue: 0, label: "Goal" }, ]; var purple = "#C287C2"; var running = true; var goal = cb.settings['goal']; function GoalOver() { running = false; } cb.onTip(function (tip) { var tipped = parseInt(tip['amount']); var user = String(tip['from_user']); var to = String(tip['to_user']); if(running) { if(goal > 0) { if((goal - tipped) < 0) { goal = 0; GoalOver(); } else { goal -= tipped; cb.chatNotice(cb.settings['title'] + " " + goal + " Tokens!", '', purple); } } else { GoalOver(); } } });
© Copyright Freesexcam 2011- 2024. All Rights Reserved.