Bots Home
|
Create an App
aaaaaaaa12
Author:
kesdevacc
Description
Source Code
Launch Bot
Current Users
Created by:
Kesdevacc
var total_tipped__ = 0; var pink__ = '#FF78DD'; var blue__ = '#70EEFF'; var grey__ = '#B8B8B8'; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']) cb.chatNotice('Thaaaanksss ' + user['user'] + '!'); cb.chatNotice("Total Tipped: " + total_tipped__); cb.chatNotice(tip); }); cb.onEnter(function(user) { if(user.has_tokens){ cb.chatNotice('Welcome ' + user['user'] + '!'); //cb.chatNotice(''); }else{ cb.chatNotice(user['user'] + ' come back with some tokens :)'); } }); cb.onMessage(function (msg) { // if(!msg.has_tokens){ // //cb.chatNotice(); // msg['m'] = msg.user + ', only users with tokens can chat'; // msg['c'] = grey; // } if (msg['m'] == '/stats') { var sts = ` Total Tipped: `+total_tipped__+` `; msg['m'] = sts; msg['c'] = blue__; return msg; } if(msg.is_mod){ msg['c'] = pink__; return msg; } });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.