Bots Home
|
Create an App
Thanks the Tippers 2
Author:
spaceball3
Description
Source Code
Launch Bot
Current Users
Created by:
Spaceball3
/* Title:Thanks the Tipper Modifed by: splurge22 Modifed from : "Tip Thank You" bot Author: kmoore Version: 1.0 (06/14/2013) This simple bot displays a chat message followed by the tipper's name if tip meets or exceeds the broadcasters minimum set tip requirement. */ var tipper = ""; var tipmsg = ""; var total_tipped = 0; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']) cb.chatNotice("Total Tipped: " + total_tipped); cb.chatNotice(tip); }); cb.settings_choices = [ { name: 'tipamount', type: 'int', minValue: 1, defaultValue: 10, label: 'Minimum tokens required for a thank you message' } , { name: 'tipmsg', type: 'str', minLength: 8, maxLength: 128, defaultValue: '**** Thank you :kisses4u [tipper] for your tip!!! (: **** ', label: "Tip thank you message, [tipper] = tipper's name" } ]; cb.onTip(function (tip) { if (parseInt(tip['amount']) >= cb.settings.tipamount) { tipper = tip['from_user']; tipmsg=cb.settings.tipmsg; tipmsg = tipmsg.replace("[tipper]", tipper); cb.chatNotice(tipmsg, tipper); } }); function init() { } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.