Bots Home
|
Create an App
test-tip
Author:
awakened1
Description
Source Code
Launch Bot
Current Users
Created by:
Awakened1
tipper = ""; tipmsg = ""; 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 [tipper] for your tip!!! (: **** ', label: "Tip thank you message, [tipper] = tipper's name" } ]; cb.onEnter(function(user) { cb.chatNotice('Welcome ' + user['user'] + '! I am just testing some app and bot code.'); }); 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.